diff --git a/README.md b/README.md index 57865a8..71a0c3b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/linedraw.py b/linedraw.py index 3c4c2db..cf88e6c 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.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: