diff options
author | yenatch <yenatch@gmail.com> | 2017-02-13 18:09:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 18:09:31 -0500 |
commit | 979c98a7c0f67ad6b9685b2d532c66a1f76ffb22 (patch) | |
tree | c67cc7b8500aac4e400d4e8bfdbef57a57b63eb1 /redtools/extract_tilesets.py | |
parent | 74c620d01ad59bfb09cf4111ace549b925fcb9ab (diff) | |
parent | 766dea11bd63dee939db2b47198410e6c6e0fc7e (diff) |
Merge pull request #103 from eevee/py3
Python 3 compatibility, sort of, maybe
Diffstat (limited to 'redtools/extract_tilesets.py')
-rw-r--r-- | redtools/extract_tilesets.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/redtools/extract_tilesets.py b/redtools/extract_tilesets.py index a0eb477..ca99606 100644 --- a/redtools/extract_tilesets.py +++ b/redtools/extract_tilesets.py @@ -1,7 +1,9 @@ +from __future__ import print_function +from __future__ import absolute_import #author: Bryan Bishop <kanzure@gmail.com> #date: 2012-01-14 #throw tilesets into separate files -import extract_maps +from . import extract_maps extract_maps.load_rom() locations = { @@ -29,9 +31,9 @@ locations = { for tileset_id in locations.keys(): tileset = locations[tileset_id] - print "writing ../gfx/tilesets/" + tileset[2] + ".2bpp" + print("writing ../gfx/tilesets/" + tileset[2] + ".2bpp") fh = open("../gfx/tilesets/" + tileset[2] + ".2bpp", "w") fh.write(extract_maps.rom[tileset[0]:tileset[1]]) fh.close() -print "Done." +print("Done.") |