1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-08-01 11:00:16 +02:00

Renamed the plates directory "printed" and now copies the un-aggragated STLs rather than moving them.

Added .gitignore
This commit is contained in:
Chris Palmer
2012-03-16 09:47:28 +00:00
parent 77b4add099
commit 4f1ad329cf
73 changed files with 246855 additions and 17371 deletions

View File

@@ -21,7 +21,7 @@ def plates(machine):
#
# Make the target directory
#
target_dir = machine + "/stls/plates"
target_dir = machine + "/stls/printed"
if os.path.isdir(target_dir):
shutil.rmtree(target_dir)
os.makedirs(target_dir)
@@ -34,15 +34,15 @@ def plates(machine):
for file in plate_list:
shutil.move(machine + "/stls/"+ file, target_dir + "/" + file)
#
# Move all the stls that are not in the plates to the plates directory
# Copy all the stls that are not in the plates to the plates directory
#
for file in bom_to_stls(machine):
path = machine + "/stls/"+ file
if not file in used:
if os.path.isfile(path):
shutil.move(path, target_dir + "/" + file)
shutil.copy(path, target_dir + "/" + file)
else:
print "can't find %s to move" % path
print "can't find %s to copy" % path
if __name__ == '__main__':
if len(sys.argv) > 1: