From a64657988a50522885618998e7f14168c299a19b Mon Sep 17 00:00:00 2001 From: "Eevee (Lexy Munroe)" Date: Wed, 24 Aug 2016 15:43:15 -0700 Subject: Fix most Python 3 compat issues with futurize --stage1 --- redtools/replace_dimensions.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'redtools/replace_dimensions.py') 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 #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() -- cgit v1.2.3