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

add support for python 3.2 and 3.3, retain backward compatibility

This commit is contained in:
Brad Pitcher
2014-02-06 19:43:19 -08:00
parent 718e8ebd4d
commit 8eff5da9ca
9 changed files with 61 additions and 48 deletions

View File

@@ -87,12 +87,12 @@ def stls(machine, parts = None):
# List the ones we didn't find
#
for module in targets:
print "Could not find", module
print("Could not find", module)
return used
if __name__ == '__main__':
if len(sys.argv) > 1:
stls(sys.argv[1], sys.argv[2:])
else:
print "usage: stls [mendel|sturdy|your_machine] [part.stl ...]"
print("usage: stls [mendel|sturdy|your_machine] [part.stl ...]")
sys.exit(1)