diff options
Diffstat (limited to 'Mac/Modules/ah')
-rw-r--r-- | Mac/Modules/ah/ahscan.py | 2 | ||||
-rw-r--r-- | Mac/Modules/ah/ahsupport.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/ah/ahscan.py b/Mac/Modules/ah/ahscan.py index 0b7fe08..8768b60 100644 --- a/Mac/Modules/ah/ahscan.py +++ b/Mac/Modules/ah/ahscan.py @@ -18,7 +18,7 @@ def main(): scanner.scan() scanner.close() print "=== Testing definitions output code ===" - execfile(defsoutput, {}, {}) + exec(open(defsoutput).read(), {}, {}) print "=== Done scanning and generating, now importing the generated code... ===" exec "import " + SHORT + "support" print "=== Done. It's up to you to compile it now! ===" diff --git a/Mac/Modules/ah/ahsupport.py b/Mac/Modules/ah/ahsupport.py index c5f24be..9fa9dde 100644 --- a/Mac/Modules/ah/ahsupport.py +++ b/Mac/Modules/ah/ahsupport.py @@ -34,7 +34,7 @@ Function = OSErrFunctionGenerator # Create and populate the lists functions = [] -execfile(INPUTFILE) +exec(open(INPUTFILE).read()) # add the populated lists to the generator groups # (in a different wordl the scan program would generate this) |