summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/macfreeze
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-06-20 21:59:25 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-06-20 21:59:25 (GMT)
commitd13c3854629d605236c4d7cc8589a647b069207e (patch)
treede7c4a95117ecc763490fa17a6ef943873683ecd /Mac/Tools/macfreeze
parent3c0d013db40bd704908d7067228d35ed3f6b46c5 (diff)
downloadcpython-d13c3854629d605236c4d7cc8589a647b069207e.zip
cpython-d13c3854629d605236c4d7cc8589a647b069207e.tar.gz
cpython-d13c3854629d605236c4d7cc8589a647b069207e.tar.bz2
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
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)