fix making the converted directory

This commit is contained in:
iou1name 2018-03-25 16:01:10 -04:00
parent 884a183910
commit ee45c501b8
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
Stupid bullshit to support my drawing machine.
Dependencies: `pyserial, Pillow, nOBEX`
Dependencies: `pyserial, Pillow, PyBluez, nOBEX`
nOBEX: https://github.com/nccgroup/nOBEX
Linedraw: https://github.com/LingDong-/linedraw
nOBEX uses sdptool to create a new service in the background, so it will need to be ran as root.

View File

@ -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.mkdir(os.path.split(path)[0], exist_ok=True)
os.makedirs(os.path.split(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: