There was an error while loading. Please reload this page.
1 parent 1a80081 commit 2d37cb2Copy full SHA for 2d37cb2
1 file changed
Lib/site.py
@@ -476,6 +476,12 @@ def venv(known_paths):
476
system_site = value.lower()
477
elif key == 'home':
478
sys._home = value
479
+ elif key == 'applocal' and value.lower() == 'true':
480
+ # App-local installs use the exe_dir as prefix,
481
+ # not one level higher, and do not use system
482
+ # site packages.
483
+ site_prefix = exe_dir
484
+ system_site = 'false'
485
486
sys.prefix = sys.exec_prefix = site_prefix
487
0 commit comments