fix making the converted directory
This commit is contained in:
parent
884a183910
commit
ee45c501b8
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user