diff Mac/scripts/BuildApplication.py @ 19515:546ef318ba5d legacy-trunk

Use the new macresource module to open the accompanying resource file (if needed).
author Jack Jansen <jack.jansen@cwi.nl>
date Mon, 27 Aug 2001 21:41:23 +0000
parents 42b2f1936254
children 412e66e3530e
line wrap: on
line diff
--- a/Mac/scripts/BuildApplication.py	Mon Aug 27 21:37:45 2001 +0000
+++ b/Mac/scripts/BuildApplication.py	Mon Aug 27 21:41:23 2001 +0000
@@ -18,6 +18,7 @@
 from Carbon import Dlg
 import EasyDialogs
 import buildtools
+import macresource
 
 # Hmmm...
 MACFREEZEPATH = os.path.join(sys.prefix, ":Mac:Tools:macfreeze")
@@ -38,13 +39,7 @@
 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: