comparison Mac/scripts/ConfigurePython.py @ 16835:5902b5794a17 legacy-trunk

Oops, need to import Res.
author Jack Jansen <jack.jansen@cwi.nl>
date Wed, 28 Feb 2001 15:53:18 +0000
parents 52fe377f07f2
children b7b048da1673
comparison
equal deleted inserted replaced
16834:52fe377f07f2 16835:5902b5794a17
11 import os 11 import os
12 import macfs 12 import macfs
13 import MacOS 13 import MacOS
14 import gestalt 14 import gestalt
15 import string 15 import string
16 import Res
16 17
17 SPLASH_COPYCORE=512 18 SPLASH_COPYCORE=512
18 SPLASH_COPYCARBON=513 19 SPLASH_COPYCARBON=513
19 SPLASH_COPYCLASSIC=514 20 SPLASH_COPYCLASSIC=514
20 SPLASH_BUILDAPPLETS=515 21 SPLASH_BUILDAPPLETS=515
106 def main(): 107 def main():
107 verbose = 0 108 verbose = 0
108 try: 109 try:
109 h = Res.GetResource('DLOG', SPLASH_COPYCORE) 110 h = Res.GetResource('DLOG', SPLASH_COPYCORE)
110 del h 111 del h
111 except: 112 except Res.Error:
112 verbose = 1 113 verbose = 1
114 print "Not running as applet: verbose on"
113 os.chdir(sys.prefix) 115 os.chdir(sys.prefix)
114 116
115 sys.path.append('::Mac:Lib') 117 sys.path.append('::Mac:Lib')
116 import macostools 118 import macostools
117 119
156 MacOS.splash(SPLASH_BUILDAPPLETS) 158 MacOS.splash(SPLASH_BUILDAPPLETS)
157 buildapplet(sys.prefix, None, APPLET_LIST) 159 buildapplet(sys.prefix, None, APPLET_LIST)
158 160
159 if __name__ == '__main__': 161 if __name__ == '__main__':
160 main() 162 main()
163 MacOS.splash()