mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Changes pyvenv.cfg trick into an actual sys.path file.
This commit is contained in:
parent
783c9ef84d
commit
4db86bc1b4
5 changed files with 154 additions and 99 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue