Changes pyvenv.cfg trick into an actual sys.path file.

This commit is contained in:
Steve Dower 2016-09-09 09:17:35 -07:00
parent 783c9ef84d
commit 4db86bc1b4
5 changed files with 154 additions and 99 deletions

View file

@ -463,12 +463,6 @@ def venv(known_paths):
system_site = value.lower()
elif key == 'home':
sys._home = value
elif key == 'applocal' and value.lower() == 'true':
# App-local installs use the exe_dir as prefix,
# not one level higher, and do not use system
# site packages.
site_prefix = exe_dir
system_site = 'false'
sys.prefix = sys.exec_prefix = site_prefix