summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/EditPythonPrefs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/scripts/EditPythonPrefs.py')
-rw-r--r--Mac/scripts/EditPythonPrefs.py6
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: