From 3c06b9a7d4fa144eebd4786f71c4a301726e0c3c Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 27 Aug 2001 21:41:23 +0000 Subject: Use the new macresource module to open the accompanying resource file (if needed). --- Mac/scripts/EditPythonPrefs.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Mac/scripts/EditPythonPrefs.py') diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py index 00119e0c7a..833e60789b 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: -- cgit v1.2.1