From: Just van Rossum Date: Fri, 29 Mar 2002 21:47:56 +0000 (+0000) Subject: repair damage: now works again as a CFM app. X-Git-Tag: v2.3c1~6250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bb61c8d4cc3cd3b75f4413442625a8620d054e3;p=python repair damage: now works again as a CFM app. --- diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py index 51072e119d..1b2b3b77fa 100644 --- a/Mac/Tools/IDE/PythonIDEMain.py +++ b/Mac/Tools/IDE/PythonIDEMain.py @@ -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()