mirror of
https://github.com/python/cpython.git
synced 2025-11-20 10:57:44 +00:00
bpo-38234: Py_SetPath() uses the program full path (GH-16357)
Py_SetPath() now sets sys.executable to the program full path (Py_GetProgramFullPath()), rather than to the program name (Py_GetProgramName()). Fix also memory leaks in pathconfig_set_from_config().
This commit is contained in:
parent
b0e1ae5f54
commit
1ce152a42e
4 changed files with 21 additions and 6 deletions
|
|
@ -0,0 +1,3 @@
|
|||
:c:func:`Py_SetPath` now sets :data:`sys.executable` to the program full
|
||||
path (:c:func:`Py_GetProgramFullPath`) rather than to the program name
|
||||
(:c:func:`Py_GetProgramName`).
|
||||
Loading…
Add table
Add a link
Reference in a new issue