You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2012-11-23.19:22:49.488>created_at=<Date2012-11-21.07:58:54.232>labels= ['interpreter-core', 'type-bug']
title='site.venv() should use abspath(executable)'updated_at=<Date2012-11-23.19:22:49.486>user='https://github.com/tiran'
While I was testing bpo-16499 I found a small bug in the venv code of the site module. The code in site.venv() doesn't use abspath() to sanitize the path to executable_dir. This leads to wrong behavior when a venv is created in the root of a hg checkout and the non-venv interpreter is called with a relative path:
Activity
tiran commentedon Nov 21, 2012
While I was testing bpo-16499 I found a small bug in the venv code of the site module. The code in site.venv() doesn't use abspath() to sanitize the path to executable_dir. This leads to wrong behavior when a venv is created in the root of a hg checkout and the non-venv interpreter is called with a relative path:
(venv) heimes@hamiller:~/dev/python/cpython/venv$ ../python -c "import sys; print(sys.path)"
['', '/usr/local/lib/python34.zip', '/home/heimes/dev/python/cpython/Lib', '/home/heimes/dev/python/cpython/Lib/plat-linux', '/home/heimes/dev/python/cpython/build/lib.linux-x86_64-3.4-pydebug', '/home/heimes/dev/python/cpython/venv/lib/python3.4/site-packages']
python-dev commentedon Nov 23, 2012
New changeset fe2200c1c2d3 by Vinay Sajip in branch '3.3':
Issue bpo-16519: Used os.path.abspath, removed unnecessary code for executable_name.
http://hg.python.org/cpython/rev/fe2200c1c2d3
New changeset a874c4a6ad5f by Vinay Sajip in branch 'default':
Closes bpo-16519: Merged fix from 3.3.
http://hg.python.org/cpython/rev/a874c4a6ad5f