diff --git a/linedraw.py b/linedraw.py index cf88e6c..93604eb 100644 --- a/linedraw.py +++ b/linedraw.py @@ -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 = 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: file.write(makePathSvg(lines)) with open(export_path + ".ngc", "w") as file: