We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 246967f commit ca98ad7Copy full SHA for ca98ad7
Lib/site.py
@@ -633,14 +633,9 @@ def venv(known_paths):
633
# Doing this here ensures venv takes precedence over user-site
634
addsitepackages(known_paths, [sys.prefix])
635
636
- # addsitepackages will process site_prefix again if its in PREFIXES,
637
- # but that's ok; known_paths will prevent anything being added twice
638
if system_site == "true":
639
- PREFIXES.insert(0, sys.prefix)
640
- if sys.base_exec_prefix != sys.exec_prefix:
641
- PREFIXES.append(sys.base_exec_prefix)
+ PREFIXES += [sys.base_prefix, sys.base_exec_prefix]
642
else:
643
- PREFIXES = [sys.prefix]
644
ENABLE_USER_SITE = False
645
646
return known_paths
0 commit comments