create the converted dir, not the received dir
This commit is contained in:
parent
9a4f54e3c9
commit
4c1bf0b167
|
@ -283,7 +283,7 @@ def sketch(path, export_path=None, resolution=1024, hatch_size=16, contour_simpl
|
||||||
|
|
||||||
export_path = path.replace("received", "converted")
|
export_path = path.replace("received", "converted")
|
||||||
export_path = os.path.splitext(export_path)[0]
|
export_path = os.path.splitext(export_path)[0]
|
||||||
os.makedirs(os.path.split(path)[0], exist_ok=True)
|
os.makedirs(os.path.split(export_path)[0], exist_ok=True)
|
||||||
with open(export_path + ".svg", "w") as file:
|
with open(export_path + ".svg", "w") as file:
|
||||||
file.write(makePathSvg(lines))
|
file.write(makePathSvg(lines))
|
||||||
with open(export_path + ".ngc", "w") as file:
|
with open(export_path + ".ngc", "w") as file:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user