Revert "make gfx.py png take only a path"

This reverts commit 915c635849.
This commit is contained in:
Bryan Bishop 2013-06-12 22:44:35 -05:00
parent 723645b470
commit 358b5b074b
1 changed files with 1 additions and 3 deletions

View File

@ -1604,9 +1604,7 @@ if __name__ == "__main__":
elif sys.argv[1] == 'png':
if '.2bpp' in sys.argv[2]:
if len(sys.argv) == 3:
to_png(sys.argv[2])
elif sys.argv[4] == 'greyscale':
if sys.argv[4] == 'greyscale':
to_png(sys.argv[2], sys.argv[3])
else:
to_png(sys.argv[2], sys.argv[3], sys.argv[4])