]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)
authorVincent Fazio <vfazio@gmail.com>
Thu, 10 Nov 2022 16:26:42 +0000 (10:26 -0600)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 16:26:42 +0000 (16:26 +0000)
commitc41b13d39ccc2d6e239782de99ba8e3cdd061e5a
tree075f0b3abf5024b4aab968a7d8e5e34eaf35b144
parentf1680c3fbf7d18a1b3a5b390c433298bb6b9fcac
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>
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