From 1023dffb36db8d34f642a9e5b1b62be6970636db Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 21 Feb 1996 15:28:49 +0000 Subject: [PATCH] - AppleEvent timeout set to infinite - Continue even if a build fails --- Mac/scripts/fullbuild.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Mac/scripts/fullbuild.py b/Mac/scripts/fullbuild.py index 90e473c0348..3c9eead499b 100644 --- a/Mac/scripts/fullbuild.py +++ b/Mac/scripts/fullbuild.py @@ -12,12 +12,14 @@ import os import sys import macfs +import MacOS import addpack addpack.addpack('Tools') addpack.addpack('bgen') addpack.addpack('AE') import aetools +import AppleEvents from Metrowerks_Shell_Suite import Metrowerks_Shell_Suite from Required_Suite import Required_Suite @@ -38,12 +40,17 @@ def buildmwproject(top, creator, projects): except 'foo': print 'Not handled:', creator return + mgr.send_timeout = AppleEvents.kNoTimeOut + for file in projects: file = os.path.join(top, file) fss = macfs.FSSpec(file) print 'Building', file mgr.open(fss) - mgr.Make_Project() + try: + mgr.Make_Project() + except MacOS.Error, arg: + print '** Failed. Possible error:', arg mgr.Close_Project() mgr.quit()