1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-01-16 20:38:15 +01:00
This commit is contained in:
Chris 2012-03-14 23:21:37 +00:00 committed by Chris Palmer
parent 6e2ea08e87
commit 5d6fcca58c

View File

@ -12,7 +12,8 @@ def stls(machine, parts = None):
target_dir = machine + "/stls"
if os.path.isdir(target_dir):
if not parts:
shutil.rmtree(target_dir)
shutil.rmtree(target_dir) #if making the BOM clear the directory first
os.makedirs(target_dir)
else:
os.makedirs(target_dir)