Steve Dower <steve.do...@python.org> added the comment:

> $ cat venv_a3/pyvenv.cfg
> home = /home/ss/.pyenv/versions/3.11.0a3/bin

> $ venv_a3/bin/python -c "import sys,os.path; print(e := 
> sys._base_executable); print(os.path.exists(e))"
> /home/ss/.pyenv/versions/3.11.0a3/bin/python
> True

This is the intended behaviour, and yes it's changed from previous versions 
(but not on Windows, where it was always correct). The previous value was 
incorrect, hence it was marked as an internal field.

If your venv doesn't have a "python" binary in the directory set as "home" in 
pyvenv.cfg (which by definition, according to Lib/venv/__init__.py, is 
dirname(sys.executable) ), then there's some other issue with venv on your 
platform.

----------
nosy: +vinay.sajip

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46028>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to