mirror of
https://github.com/nophead/Mendel90.git
synced 2025-01-16 20:38:15 +01:00
Fix
This commit is contained in:
parent
6e2ea08e87
commit
5d6fcca58c
3
stls.py
3
stls.py
@ -12,7 +12,8 @@ def stls(machine, parts = None):
|
|||||||
target_dir = machine + "/stls"
|
target_dir = machine + "/stls"
|
||||||
if os.path.isdir(target_dir):
|
if os.path.isdir(target_dir):
|
||||||
if not parts:
|
if not parts:
|
||||||
shutil.rmtree(target_dir)
|
shutil.rmtree(target_dir) #if making the BOM clear the directory first
|
||||||
|
os.makedirs(target_dir)
|
||||||
else:
|
else:
|
||||||
os.makedirs(target_dir)
|
os.makedirs(target_dir)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user