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/replace_dimensions.py | |
parent | 74c620d01ad59bfb09cf4111ace549b925fcb9ab (diff) | |
parent | 766dea11bd63dee939db2b47198410e6c6e0fc7e (diff) |
Merge pull request #103 from eevee/py3
Python 3 compatibility, sort of, maybe
Diffstat (limited to 'redtools/replace_dimensions.py')
-rw-r--r-- | redtools/replace_dimensions.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/redtools/replace_dimensions.py b/redtools/replace_dimensions.py index fc089f7..b8bb717 100644 --- a/redtools/replace_dimensions.py +++ b/redtools/replace_dimensions.py @@ -1,10 +1,11 @@ +from __future__ import absolute_import #author: Bryan Bishop <kanzure@gmail.com> #date: 2012-01-15 #replace dimensions with constants import sys #for non-newline-terminated output :/ -from add_map_labels_to_map_headers import find_with_start_of_line -from pretty_map_headers import map_name_cleaner, spacing, offset_to_pointer, map_constants -from connection_helper import print_connections +from .add_map_labels_to_map_headers import find_with_start_of_line +from .pretty_map_headers import map_name_cleaner, spacing, offset_to_pointer, map_constants +from .connection_helper import print_connections from ctypes import c_int8 # X/Y_Movement_Of_Connection @@ -234,7 +235,7 @@ def replace_values(): connection_offset += 6 if __name__ == "__main__": - import extract_maps + from . import extract_maps extract_maps.load_rom() extract_maps.load_map_pointers() extract_maps.read_all_map_headers() |