Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7fb3e6

Browse files
committed
Oops, need to import Res.
1 parent 72b97ae commit f7fb3e6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Mac/scripts/ConfigurePython.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import MacOS
1414
import gestalt
1515
import string
16+
import Res
1617

1718
SPLASH_COPYCORE=512
1819
SPLASH_COPYCARBON=513
@@ -108,8 +109,9 @@ def main():
108109
try:
109110
h = Res.GetResource('DLOG', SPLASH_COPYCORE)
110111
del h
111-
except:
112+
except Res.Error:
112113
verbose = 1
114+
print "Not running as applet: verbose on"
113115
os.chdir(sys.prefix)
114116

115117
sys.path.append('::Mac:Lib')
@@ -158,3 +160,4 @@ def main():
158160

159161
if __name__ == '__main__':
160162
main()
163+
MacOS.splash()

0 commit comments

Comments
 (0)