summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-28 15:53:18 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-28 15:53:18 (GMT)
commitf7fb3e6435035376af978b1d4249a744125aac8f (patch)
tree72c8a2924f67cff0b581ebc7dc3a9d79330f2a83 /Mac
parent72b97aed809fd01365512c9c176c6f91a98d587d (diff)
downloadcpython-f7fb3e6435035376af978b1d4249a744125aac8f.zip
cpython-f7fb3e6435035376af978b1d4249a744125aac8f.tar.gz
cpython-f7fb3e6435035376af978b1d4249a744125aac8f.tar.bz2
Oops, need to import Res.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/scripts/ConfigurePython.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/scripts/ConfigurePython.py b/Mac/scripts/ConfigurePython.py
index 5c75f52..ec4dab4 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()