diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-20 21:59:25 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-20 21:59:25 (GMT) |
commit | d13c3854629d605236c4d7cc8589a647b069207e (patch) | |
tree | de7c4a95117ecc763490fa17a6ef943873683ecd /Mac/Tools/IDE | |
parent | 3c0d013db40bd704908d7067228d35ed3f6b46c5 (diff) | |
download | cpython-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/IDE')
-rw-r--r-- | Mac/Tools/IDE/BuildIDE.py | 4 | ||||
-rw-r--r-- | Mac/Tools/IDE/PyEdit.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Tools/IDE/BuildIDE.py b/Mac/Tools/IDE/BuildIDE.py index 82a0636..942670a 100644 --- a/Mac/Tools/IDE/BuildIDE.py +++ b/Mac/Tools/IDE/BuildIDE.py @@ -19,7 +19,7 @@ dstfilename = os.path.join(sys.exec_prefix, "Python IDE") buildtools.process(template, mainfilename, dstfilename, 1) -targetref = Res.OpenResFile(dstfilename) +targetref = Res.FSpOpenResFile(dstfilename, 3) Res.UseResFile(targetref) files = os.listdir(ide_home) @@ -36,6 +36,6 @@ for name in files: ispackage=0) # add W resources -wresref = Res.OpenResFile(os.path.join(ide_home, "Widgets.rsrc")) +wresref = Res.FSpOpenResFile(os.path.join(ide_home, "Widgets.rsrc"), 1) buildtools.copyres(wresref, targetref, [], 0) diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py index bff5baf..0a0773e 100644 --- a/Mac/Tools/IDE/PyEdit.py +++ b/Mac/Tools/IDE/PyEdit.py @@ -114,7 +114,7 @@ class Editor(W.Window): def readwindowsettings(self): try: - resref = Res.OpenResFile(self.path) + resref = Res.FSpOpenResFile(self.path, 1) except Res.Error: return try: @@ -127,10 +127,10 @@ class Editor(W.Window): def writewindowsettings(self): try: - resref = Res.OpenResFile(self.path) + resref = Res.FSpOpenResFile(self.path, 3) except Res.Error: Res.CreateResFile(self.path) - resref = Res.OpenResFile(self.path) + resref = Res.FSpOpenResFile(self.path, 3) try: data = Res.Resource(marshal.dumps(self.settings)) Res.UseResFile(resref) |