From: Antoine Pitrou Date: Thu, 5 Jul 2012 18:56:30 +0000 (+0200) Subject: Issue #15020: The program name used to search for Python's path is now "python3"... X-Git-Tag: v3.3.0b2~316^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01cca5e45185474bdb3c621c5dec4bfc0b323483;p=python Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python". --- diff --git a/Misc/NEWS b/Misc/NEWS index 5adf15e1d3..563a7f098a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.2.4 Core and Builtins ----------------- +- Issue #15020: The program name used to search for Python's path is now + "python3" under Unix, not "python". + - Issue #15033: Fix the exit status bug when modules invoked using -m swith, return the proper failure return value (1). Patch contributed by Jeff Knupp. diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 5a96bae059..460946804d 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -696,7 +696,11 @@ Py_EndInterpreter(PyThreadState *tstate) PyInterpreterState_Delete(interp); } +#ifdef MS_WINDOWS static wchar_t *progname = L"python"; +#else +static wchar_t *progname = L"python3"; +#endif void Py_SetProgramName(wchar_t *pn)