diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-27 21:41:23 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-27 21:41:23 (GMT) |
commit | 3c06b9a7d4fa144eebd4786f71c4a301726e0c3c (patch) | |
tree | 4f9cdc3420a0b7d6cd76ec44245df09628e98993 /Mac/scripts/BuildApplication.py | |
parent | a5d7da528bda145426c50ad9ded8d0707d5f302c (diff) | |
download | cpython-3c06b9a7d4fa144eebd4786f71c4a301726e0c3c.zip cpython-3c06b9a7d4fa144eebd4786f71c4a301726e0c3c.tar.gz cpython-3c06b9a7d4fa144eebd4786f71c4a301726e0c3c.tar.bz2 |
Use the new macresource module to open the accompanying resource file (if needed).
Diffstat (limited to 'Mac/scripts/BuildApplication.py')
-rw-r--r-- | Mac/scripts/BuildApplication.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Mac/scripts/BuildApplication.py b/Mac/scripts/BuildApplication.py index ee82b7a..a7c8f40 100644 --- a/Mac/scripts/BuildApplication.py +++ b/Mac/scripts/BuildApplication.py @@ -18,6 +18,7 @@ from Carbon import Res from Carbon import Dlg import EasyDialogs import buildtools +import macresource # Hmmm... MACFREEZEPATH = os.path.join(sys.prefix, ":Mac:Tools:macfreeze") @@ -38,13 +39,7 @@ GEN68K_BUTTON = 6 PPC_ONLY=1 -try: - Res.GetResource('DITL', DLG_ID) -except Res.Error: - Res.FSpOpenResFile("BuildApplication.rsrc", 1) -else: - pass # we're an applet - +macresource.need('DITL', DLG_ID, "BuildApplication.rsrc") def main(): try: |