mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-120037: Disable user site packages when a ._pth file is used (GH-137428)
This commit is contained in:
parent
e39255e76d
commit
7d06a0af17
4 changed files with 19 additions and 0 deletions
|
|
@ -790,6 +790,7 @@ def search_up(prefix, *landmarks, test=isfile):
|
|||
config['isolated'] = 1
|
||||
config['use_environment'] = 0
|
||||
config['site_import'] = 0
|
||||
config['user_site_directory'] = 0
|
||||
config['safe_path'] = 1
|
||||
pythonpath = []
|
||||
for line in pth:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue