use bytes when copying svg file

This commit is contained in:
Hg 2020-10-08 22:34:44 +02:00
parent c549120037
commit a279606820

View File

@ -113,7 +113,7 @@ def main():
]).decode().split()) ]).decode().split())
new_path = pshapes.joinpath(f"{svg_file.stem}.svg") new_path = pshapes.joinpath(f"{svg_file.stem}.svg")
new_path.write_text(svg_file.read_text()) new_path.write_bytes(svg_file.read_bytes())
print(f"wrote {new_path}") print(f"wrote {new_path}")
xshape = build_shape(svg_file, width, height) xshape = build_shape(svg_file, width, height)