summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/macfreeze
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/macfreeze')
-rw-r--r--Mac/Tools/macfreeze/macfreezegui.py2
-rw-r--r--Mac/Tools/macfreeze/macgen_bin.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Tools/macfreeze/macfreezegui.py b/Mac/Tools/macfreeze/macfreezegui.py
index bd70c00..c3311b7 100644
--- a/Mac/Tools/macfreeze/macfreezegui.py
+++ b/Mac/Tools/macfreeze/macfreezegui.py
@@ -60,7 +60,7 @@ def dialog(script=None):
d = None
if d == None:
try:
- Res.OpenResFile('macfreeze.rsrc')
+ Res.FSpOpenResFile('macfreeze.rsrc', 1)
except Res.Error:
d = None
else:
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)