mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Install automatic GIL switcher upon IDE startup.
(Jack: maybe this could/should be done in Framework.py instead, that way apps don't have to think about it. PackMan springs to mind...)
This commit is contained in:
parent
96f7d875b7
commit
4e2d23226f
@ -12,6 +12,13 @@ def init():
|
||||
if hasattr(MacOS, 'EnableAppswitch'):
|
||||
MacOS.EnableAppswitch(-1)
|
||||
|
||||
try:
|
||||
import autoGIL
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
autoGIL.installAutoGIL()
|
||||
|
||||
from Carbon import Qd, QuickDraw
|
||||
Qd.SetCursor(Qd.GetCursor(QuickDraw.watchCursor).data)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user