]> granicus.if.org Git - python/commitdiff
repair damage: now works again as a CFM app.
authorJust van Rossum <just@letterror.com>
Fri, 29 Mar 2002 21:47:56 +0000 (21:47 +0000)
committerJust van Rossum <just@letterror.com>
Fri, 29 Mar 2002 21:47:56 +0000 (21:47 +0000)
Mac/Tools/IDE/PythonIDEMain.py

index 51072e119d559d68a7b3f36d31786b79041171c4..1b2b3b77fa81289c5f5590625d9774919257b8fc 100644 (file)
@@ -46,7 +46,7 @@ class PythonIDE(Wapplication.Application):
                # 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()