summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-07-05 20:56:30 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-07-05 20:56:30 +0200
commit98e8a3b71177303472f5f7cfa623c0702dda8ca1 (patch)
tree39445e989cc163109efa3a1405edcb09a93061e9 /Python/pythonrun.c
parent9fcbaeb92032cbd5b594368c3a35d5c4095501ee (diff)
downloadcpython-98e8a3b71177303472f5f7cfa623c0702dda8ca1.tar.gz
Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python".
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 4 insertions, 0 deletions
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)