Fixed age-old beginner's error: don't start the main loop as a side
effect of an import. (This is one step towards threading support in
the IDE.)
diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py
index 3a1a66a..9922bef 100644
--- a/Mac/Tools/IDE/PythonIDE.py
+++ b/Mac/Tools/IDE/PythonIDE.py
@@ -48,4 +48,5 @@
init()
del init
-import PythonIDEMain
+import PythonIDEMain as _PythonIDEMain
+_PythonIDEMain.PythonIDE()
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py
index fa71cb7..1414995 100644
--- a/Mac/Tools/IDE/PythonIDEMain.py
+++ b/Mac/Tools/IDE/PythonIDEMain.py
@@ -463,7 +463,3 @@
except (ImportError, MacOS.Error), arg:
pass # W.Message("Cannot register Python Documentation: %s" % str(arg))
return has_help, has_doc
-
-
-PythonIDE()
-