summaryrefslogtreecommitdiffstats
path: root/Tools/idle/idle.pyw
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle/idle.pyw')
-rw-r--r--Tools/idle/idle.pyw12
1 files changed, 9 insertions, 3 deletions
diff --git a/Tools/idle/idle.pyw b/Tools/idle/idle.pyw
index 3c06e05..a1fc021 100644
--- a/Tools/idle/idle.pyw
+++ b/Tools/idle/idle.pyw
@@ -1,3 +1,9 @@
-#! /usr/bin/env python
-import PyShell
-PyShell.main()
+try:
+ import PyShell
+ PyShell.main()
+except SystemExit:
+ raise
+except:
+ import traceback
+ traceback.print_exc()
+ raw_input("Hit return to exit...")