Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 77950:61e6ac40c816
Issue #15020: The program name used to search for Python's path is now python3 under Unix, not python.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 05 Jul 2012 20:57:33 +0200 |
| parents | d63a80abfbec c97d78415f5a |
| children | 3987667bf98f |
comparison
equal
deleted
inserted
replaced
| 77947:1186d68715cc | 77950:61e6ac40c816 |
|---|---|
| 776 PyInterpreterState_Clear(interp); | 776 PyInterpreterState_Clear(interp); |
| 777 PyThreadState_Swap(NULL); | 777 PyThreadState_Swap(NULL); |
| 778 PyInterpreterState_Delete(interp); | 778 PyInterpreterState_Delete(interp); |
| 779 } | 779 } |
| 780 | 780 |
| 781 #ifdef MS_WINDOWS | |
| 781 static wchar_t *progname = L"python"; | 782 static wchar_t *progname = L"python"; |
| 783 #else | |
| 784 static wchar_t *progname = L"python3"; | |
| 785 #endif | |
| 782 | 786 |
| 783 void | 787 void |
| 784 Py_SetProgramName(wchar_t *pn) | 788 Py_SetProgramName(wchar_t *pn) |
| 785 { | 789 { |
| 786 if (pn && *pn) | 790 if (pn && *pn) |
