]> granicus.if.org Git - python/commit
bpo-38234: Py_SetPath() uses the program full path (GH-16357)
authorVictor Stinner <vstinner@redhat.com>
Tue, 24 Sep 2019 15:44:15 +0000 (17:44 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2019 15:44:15 +0000 (17:44 +0200)
commit1ce152a42eaa917d7763bce93f1e1ca72530d7ca
treee6a43ecd6f9d776571f96544f763b016cf8047a9
parentb0e1ae5f5430433766e023c1a6936aeba0f2b84e
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().
Doc/c-api/init.rst
Doc/whatsnew/3.8.rst
Misc/NEWS.d/next/C API/2019-09-24-17-09-48.bpo-38234.d0bhEA.rst [new file with mode: 0644]
Python/pathconfig.c