mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Oops, need to import Res.
This commit is contained in:
parent
72b97aed80
commit
f7fb3e6435
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue