]> granicus.if.org Git - python/commitdiff
Install automatic GIL switcher upon IDE startup.
authorJust van Rossum <just@letterror.com>
Sat, 3 May 2003 00:31:35 +0000 (00:31 +0000)
committerJust van Rossum <just@letterror.com>
Sat, 3 May 2003 00:31:35 +0000 (00:31 +0000)
(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...)

Mac/Tools/IDE/PythonIDE.py

index 9922bef0e36216a9ca27c9066f2d93eed313fa6c..b7bc388f087270c633e4d541622eb970d376ad86 100644 (file)
@@ -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)