Use the new macresource module to open the accompanying resource file (if needed).

This commit is contained in:
Jack Jansen 2001-08-27 21:41:23 +00:00
parent a5d7da528b
commit 3c06b9a7d4
13 changed files with 37 additions and 102 deletions

View file

@ -18,6 +18,7 @@ from Carbon import Res
from Carbon import Dlg
import EasyDialogs
import buildtools
import macresource
# Hmmm...
MACFREEZEPATH = os.path.join(sys.prefix, ":Mac:Tools:macfreeze")
@ -38,13 +39,7 @@ GEN68K_BUTTON = 6
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: