From: Jack Jansen Date: Wed, 28 Feb 2001 15:53:18 +0000 (+0000) Subject: Oops, need to import Res. X-Git-Tag: v2.1b1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7fb3e6435035376af978b1d4249a744125aac8f;p=python Oops, need to import Res. --- diff --git a/Mac/scripts/ConfigurePython.py b/Mac/scripts/ConfigurePython.py index 5c75f528ac..ec4dab4282 100644 --- a/Mac/scripts/ConfigurePython.py +++ b/Mac/scripts/ConfigurePython.py @@ -13,6 +13,7 @@ import macfs import MacOS import gestalt import string +import Res SPLASH_COPYCORE=512 SPLASH_COPYCARBON=513 @@ -108,8 +109,9 @@ def main(): try: h = Res.GetResource('DLOG', SPLASH_COPYCORE) del h - except: + except Res.Error: verbose = 1 + print "Not running as applet: verbose on" os.chdir(sys.prefix) sys.path.append('::Mac:Lib') @@ -158,3 +160,4 @@ def main(): if __name__ == '__main__': main() + MacOS.splash()