diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-20 21:59:25 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-20 21:59:25 +0000 |
commit | 043baf9b18133da654969d4ad0dcfde6174f7f9d (patch) | |
tree | 87f8d976c2d0a4ca15fd718fcc63ae21b58a875a /Mac/Tools/macfreeze/macgen_bin.py | |
parent | 8e23b2685b630805649593dcc8ec31b95f5fd47a (diff) | |
download | cpython-043baf9b18133da654969d4ad0dcfde6174f7f9d.tar.gz |
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
Diffstat (limited to 'Mac/Tools/macfreeze/macgen_bin.py')
-rw-r--r-- | Mac/Tools/macfreeze/macgen_bin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Tools/macfreeze/macgen_bin.py b/Mac/Tools/macfreeze/macgen_bin.py index 04260ed354..9b653cba2f 100644 --- a/Mac/Tools/macfreeze/macgen_bin.py +++ b/Mac/Tools/macfreeze/macgen_bin.py @@ -39,7 +39,7 @@ def generate(input, output, module_dict=None, architecture='fat', debug=0): print 'Adding "__main__"' buildtools.process(applettemplatepath, input, output, 0) - outputref = Res.OpenResFile(output) + outputref = Res.FSpOpenResFile(output, 3) try: Res.UseResFile(outputref) @@ -171,10 +171,10 @@ def makefilenames(name): def copyres(input, output, *args, **kwargs): openedin = openedout = 0 if type(input) == types.StringType: - input = Res.OpenResFile(input) + input = Res.FSpOpenResFile(input, 1) openedin = 1 if type(output) == types.StringType: - output = Res.OpenResFile(output) + output = Res.FSpOpenResFile(output, 3) openedout = 1 try: apply(buildtools.copyres, (input, output) + args, kwargs) |