[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

Steve Dower report at bugs.python.org
Tue Dec 14 16:41:13 EST 2021


Steve Dower <steve.dower at python.org> added the comment:

Does the first venv's 'python' link to python3[.11]? If so, maybe _base_executable should be based on real_executable's filename rather than executable (that is, *after* resolving symlinks rather than before).

I don't *think* that will cause any issues, and it shouldn't be any more expensive to compute. Only has to change for when a pyvenv.cfg is detected I think.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46028>
_______________________________________


More information about the Python-bugs-list mailing list