diff options
| author | Steve Dower <steve.dower@microsoft.com> | 2015-07-17 18:59:21 (GMT) |
|---|---|---|
| committer | Steve Dower <steve.dower@microsoft.com> | 2015-07-17 18:59:21 (GMT) |
| commit | 2d37cb2e1df89fd6df1615953c922c1729799a04 (patch) | |
| tree | 4973ad11812275e6f679c676378de783d7597200 /Lib/site.py | |
| parent | 1a8008127207e70b13ceec651524da7f2c4831bc (diff) | |
| download | cpython-2d37cb2e1df89fd6df1615953c922c1729799a04.zip cpython-2d37cb2e1df89fd6df1615953c922c1729799a04.tar.gz cpython-2d37cb2e1df89fd6df1615953c922c1729799a04.tar.bz2 | |
Fixes sys.path for applocal environments.
Diffstat (limited to 'Lib/site.py')
| -rw-r--r-- | Lib/site.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/site.py b/Lib/site.py index b7d0331..6f66c07 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -476,6 +476,12 @@ 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 |
