summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/macfreeze/macfreezegui.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/macfreeze/macfreezegui.py')
-rw-r--r--Mac/Tools/macfreeze/macfreezegui.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/Mac/Tools/macfreeze/macfreezegui.py b/Mac/Tools/macfreeze/macfreezegui.py
index a834138..7921a29 100644
--- a/Mac/Tools/macfreeze/macfreezegui.py
+++ b/Mac/Tools/macfreeze/macfreezegui.py
@@ -6,6 +6,7 @@ import sys
import os
import string
from Carbon import Res
+import macresource
ID_MAINDIALOG=512
@@ -54,17 +55,8 @@ def dialog(script=None):
dirname = os.path.join(dirname, 'build.'+basebase)
# Get the dialog, possibly opening the resource file (if needed)
- try:
- d = Dlg.GetNewDialog(ID_MAINDIALOG, -1)
- except Dlg.Error:
- d = None
- if d == None:
- try:
- Res.FSpOpenResFile('macfreeze.rsrc', 1)
- except Res.Error:
- d = None
- else:
- d = Dlg.GetNewDialog(ID_MAINDIALOG, -1)
+ macresource.need('DLOG', ID_MAINDIALOG, 'macfreeze.rsrc')
+ d = Dlg.GetNewDialog(ID_MAINDIALOG, -1)
if d == None:
EasyDialogs.Message("Dialog resource not found or faulty")
sys.exit(1)