Skip to content

Commit ca98ad7

Browse files
committed
Apply Filipe's suggestion
1 parent 246967f commit ca98ad7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Lib/site.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -633,14 +633,9 @@ def venv(known_paths):
633633
# Doing this here ensures venv takes precedence over user-site
634634
addsitepackages(known_paths, [sys.prefix])
635635

636-
# addsitepackages will process site_prefix again if its in PREFIXES,
637-
# but that's ok; known_paths will prevent anything being added twice
638636
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)
637+
PREFIXES += [sys.base_prefix, sys.base_exec_prefix]
642638
else:
643-
PREFIXES = [sys.prefix]
644639
ENABLE_USER_SITE = False
645640

646641
return known_paths

0 commit comments

Comments
 (0)