mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
make gfx.py png take only a path
This commit is contained in:
parent
128dce7aac
commit
915c635849
@ -1604,7 +1604,9 @@ if __name__ == "__main__":
|
||||
elif sys.argv[1] == 'png':
|
||||
|
||||
if '.2bpp' in sys.argv[2]:
|
||||
if sys.argv[4] == 'greyscale':
|
||||
if len(sys.argv) == 3:
|
||||
to_png(sys.argv[2])
|
||||
elif sys.argv[4] == 'greyscale':
|
||||
to_png(sys.argv[2], sys.argv[3])
|
||||
else:
|
||||
to_png(sys.argv[2], sys.argv[3], sys.argv[4])
|
||||
|
Loading…
Reference in New Issue
Block a user