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/twit | |
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/twit')
-rw-r--r-- | Mac/Tools/twit/mactwit_app.py | 2 | ||||
-rw-r--r-- | Mac/Tools/twit/mactwit_browser.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Tools/twit/mactwit_app.py b/Mac/Tools/twit/mactwit_app.py index 4b8433a..8c568df 100644 --- a/Mac/Tools/twit/mactwit_app.py +++ b/Mac/Tools/twit/mactwit_app.py @@ -260,7 +260,7 @@ def Initialize(): dummy = Res.GetResource('DLOG', ID_MODULES) except Res.Error: try: - Res.OpenResFile("Twit.rsrc") + Res.FSpOpenResFile("Twit.rsrc", 1) except Res.Error, arg: EasyDialogs.Message("Cannot open Twit.rsrc: "+arg[1]) sys.exit(1) diff --git a/Mac/Tools/twit/mactwit_browser.py b/Mac/Tools/twit/mactwit_browser.py index a8968ca..070de43 100644 --- a/Mac/Tools/twit/mactwit_browser.py +++ b/Mac/Tools/twit/mactwit_browser.py @@ -61,7 +61,7 @@ def Initialize(): ourparentdir = os.path.split(openresfile.func_code.co_filename)[0] os.chdir(ourparentdir) try: - Res.OpenResFile("mactwit_browse.rsrc") + Res.FSpOpenResFile("mactwit_browse.rsrc", 1) except Res.Error, arg: EasyDialogs.Message("Cannot open mactwit_browse.rsrc: "+arg[1]) sys.exit(1) |