summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
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/scripts
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/scripts')
-rw-r--r--Mac/scripts/BuildApplication.py2
-rw-r--r--Mac/scripts/EditPythonPrefs.py2
-rw-r--r--Mac/scripts/MkDistr_ui.py4
-rw-r--r--Mac/scripts/RunLibScript.py2
-rw-r--r--Mac/scripts/fullbuild.py2
5 files changed, 6 insertions, 6 deletions
diff --git a/Mac/scripts/BuildApplication.py b/Mac/scripts/BuildApplication.py
index dbfe515..6f55eb1 100644
--- a/Mac/scripts/BuildApplication.py
+++ b/Mac/scripts/BuildApplication.py
@@ -38,7 +38,7 @@ GEN68K_BUTTON = 6
try:
Res.GetResource('DITL', DLG_ID)
except Res.Error:
- Res.OpenResFile("BuildApplication.rsrc")
+ Res.FSpOpenResFile("BuildApplication.rsrc", 1)
else:
pass # we're an applet
diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py
index 44d89a6..d9f30f1 100644
--- a/Mac/scripts/EditPythonPrefs.py
+++ b/Mac/scripts/EditPythonPrefs.py
@@ -170,7 +170,7 @@ def edit_applet(name):
def main():
try:
- h = OpenResFile('EditPythonPrefs.rsrc')
+ h = FSpOpenResFile('EditPythonPrefs.rsrc', 1)
except Res.Error:
pass # Assume we already have acces to our own resource
diff --git a/Mac/scripts/MkDistr_ui.py b/Mac/scripts/MkDistr_ui.py
index f0be72b..6b39aaa 100644
--- a/Mac/scripts/MkDistr_ui.py
+++ b/Mac/scripts/MkDistr_ui.py
@@ -321,7 +321,7 @@ def GetType():
def InitUI():
"""Initialize stuff needed by UI (a resource file)"""
- Res.OpenResFile('MkDistr.rsrc')
+ Res.FSpOpenResFile('MkDistr.rsrc', 1)
class _testerhelp:
def __init__(self, which):
@@ -340,7 +340,7 @@ class _testerhelp:
class _test:
def __init__(self):
import sys
- Res.OpenResFile('MkDistr.rsrc')
+ Res.FSpOpenResFile('MkDistr.rsrc', 1)
self.inc = _testerhelp('include')
self.exc = _testerhelp('exclude')
self.ui = MkDistrUI(self)
diff --git a/Mac/scripts/RunLibScript.py b/Mac/scripts/RunLibScript.py
index 3a9ab7e..362cb82 100644
--- a/Mac/scripts/RunLibScript.py
+++ b/Mac/scripts/RunLibScript.py
@@ -85,7 +85,7 @@ def main():
curdir = os.getcwd()
import Res
try:
- Res.OpenResFile('RunLibScript.rsrc')
+ Res.FSpOpenResFile('RunLibScript.rsrc', 1)
except:
pass # Assume we're an applet already
name, argv, stdin, stdout, wdir, pause = interact()
diff --git a/Mac/scripts/fullbuild.py b/Mac/scripts/fullbuild.py
index 11a6b8b..5095446 100644
--- a/Mac/scripts/fullbuild.py
+++ b/Mac/scripts/fullbuild.py
@@ -270,7 +270,7 @@ def incbuildno(filename):
def main():
try:
- h = Res.OpenResFile('fullbuild.rsrc')
+ h = Res.FSpOpenResFile('fullbuild.rsrc', 1)
except Res.Error:
pass # Assume we already have acces to our own resource