diff options
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 04260ed..9b653cb 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) |