diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-05 18:56:30 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-05 18:56:30 (GMT) |
commit | 01cca5e45185474bdb3c621c5dec4bfc0b323483 (patch) | |
tree | 5c12e912541c290865385dcd679390c89b3a022a /Python | |
parent | f01a337950bdcd6905d12b2335ba4d8773f6b8e5 (diff) | |
download | cpython-01cca5e45185474bdb3c621c5dec4bfc0b323483.zip cpython-01cca5e45185474bdb3c621c5dec4bfc0b323483.tar.gz cpython-01cca5e45185474bdb3c621c5dec4bfc0b323483.tar.bz2 |
Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python".
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 5a96bae..4609468 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) |