summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Tools/IDE/PythonIDE.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py
index 9922bef..b7bc388 100644
--- a/Mac/Tools/IDE/PythonIDE.py
+++ b/Mac/Tools/IDE/PythonIDE.py
@@ -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)