Issue #15020: The program name used to search for Python's path is now python3 under Unix, not python.

This commit is contained in:
Antoine Pitrou 2012-07-05 20:57:33 +02:00
commit 74de153681
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,9 @@ What's New in Python 3.3.0 Beta 2?
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.

View File

@ -778,7 +778,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)