summaryrefslogtreecommitdiff
path: root/Doc/whatsnew/3.8.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-09-24 17:44:15 +0200
committerGitHub <noreply@github.com>2019-09-24 17:44:15 +0200
commit1ce152a42eaa917d7763bce93f1e1ca72530d7ca (patch)
treee6a43ecd6f9d776571f96544f763b016cf8047a9 /Doc/whatsnew/3.8.rst
parentb0e1ae5f5430433766e023c1a6936aeba0f2b84e (diff)
downloadcpython-git-1ce152a42eaa917d7763bce93f1e1ca72530d7ca.tar.gz
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().
Diffstat (limited to 'Doc/whatsnew/3.8.rst')
-rwxr-xr-xDoc/whatsnew/3.8.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index c2455f487b..0995cb3b91 100755
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -1347,6 +1347,11 @@ Build and C API Changes
parameter for indicating the number of positional-only arguments.
(Contributed by Pablo Galindo in :issue:`37221`.)
+* :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`).
+ (Contributed by Victor Stinner in :issue:`38234`.)
+
Deprecated
==========