[issue15307] Patch for --symlink support in pyvenv with framework python

Ronald Oussoren report at bugs.python.org
Thu Jul 12 16:47:01 CEST 2012


Ronald Oussoren <ronaldoussoren at 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 <report at bugs.python.org>
<http://bugs.python.org/issue15307>
_______________________________________


More information about the Python-bugs-list mailing list