Ronald Oussoren <ronaldousso...@mac.com> added the comment:

based on code inspection I'd say that sys.executable was broken without my 
patch as well. The code that sets that value is unchanged from Python 3.2, and 
that points to the executable inside the Python.app application bundle.

I've attached v3 of my patch, that ensures that sys.executable is the path used 
to start the executable. This gives points to the right executable when using 
venv and is a nicer (and arguably better) result outside of vent's as well.

There should probably be new tests as well that test that sys.executable has 
the right value in a venv.

----------
Added file: http://bugs.python.org/file26366/venv-symlinks-v3.txt

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

Reply via email to