1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-07-31 18:40:14 +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

@@ -50,11 +50,11 @@ def plates(machine):
if os.path.isfile(path):
shutil.copy(path, target_dir + "/" + file)
else:
print "can't find %s to copy" % path
print("can't find %s to copy" % path)
if __name__ == '__main__':
if len(sys.argv) > 1:
plates(sys.argv[1])
else:
print "usage: plates [mendel|sturdy|your_machine]"
print("usage: plates [mendel|sturdy|your_machine]")
sys.exit(1)