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/EditPythonPrefs.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/EditPythonPrefs.py')
-rw-r--r-- | Mac/scripts/EditPythonPrefs.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py index 00119e0..833e607 100644 --- a/Mac/scripts/EditPythonPrefs.py +++ b/Mac/scripts/EditPythonPrefs.py @@ -15,6 +15,7 @@ import os import sys from Carbon import Res # For Res.Error import pythonprefs +import macresource import EasyDialogs try: from Carbon import Help @@ -195,10 +196,7 @@ def edit_applet(name): handler.save(result) def main(): - try: - h = FSpOpenResFile('EditPythonPrefs.rsrc', 1) - except Res.Error: - pass # Assume we already have acces to our own resource + macresource.need('DLOG', DIALOG_ID, 'EditPythonPrefs.rsrc') MacOS.SchedParams(1, 0) if len(sys.argv) <= 1: |