]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 10 Nov 2022 16:53:51 +0000 (08:53 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 16:53:51 +0000 (08:53 -0800)
commitc9f2177d13925536c662c1c9237ed0875b8b67da
tree772e90034e768839985de39cec7bb7d9e540c3f9
parentf9a68be6733fba8b5003119445b08dedace9367e
gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)

Check to see if `base_executable` exists. If it does not, attempt
to use known alternative names of the python binary to find an
executable in the path specified by `home`.

If no alternative is found, previous behavior is preserved.

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
(cherry picked from commit c41b13d39ccc2d6e239782de99ba8e3cdd061e5a)

Co-authored-by: Vincent Fazio <vfazio@gmail.com>
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Lib/test/test_getpath.py
Misc/NEWS.d/next/Core and Builtins/2022-11-07-08-17-12.gh-issue-99204.Mf4hMD.rst [new file with mode: 0644]
Modules/getpath.py