1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-08-09 06:46:30 +02:00
This commit is contained in:
Chris
2012-03-14 23:21:37 +00:00
parent 1e86cd17aa
commit 197cfa15bd

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)