diff Mac/Tools/IDE/PythonIDEMain.py @ 22675:57811c355f3a legacy-trunk

repair damage: now works again as a CFM app.
author Just van Rossum <just@letterror.com>
date Fri, 29 Mar 2002 21:47:56 +0000
parents 86ce9ee14045
children 62d8f974811f
line wrap: on
line diff
--- a/Mac/Tools/IDE/PythonIDEMain.py	Fri Mar 29 21:26:04 2002 +0000
+++ b/Mac/Tools/IDE/PythonIDEMain.py	Fri Mar 29 21:47:56 2002 +0000
@@ -46,7 +46,7 @@
 		# With -D option (OSX command line only) keep stderr, for debugging the IDE
 		# itself.
 		debug_stderr = None
-		if sys.argv[1] == '-D':
+		if len(sys.argv) >= 2 and sys.argv[1] == '-D':
 			debug_stderr = sys.stderr
 			del sys.argv[1]
 		PyConsole.installoutput()