Skip to content

Commit 2f52838

Browse files
committed
Also skip on Py_SetPath
Signed-off-by: Filipe Laíns <[email protected]>
1 parent 0e31eca commit 2f52838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/getpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def search_up(prefix, *landmarks, test=isfile):
776776
# Warn if the standard library is missing, unless pythonpath_was_set was set, as
777777
# that skips parts of the stdlib directories calculation — assume the provided
778778
# pythonpath is correct. This is how subinterpreters initialize the path for eg.
779-
if not pythonpath_was_set and (not stdlib_zip or not isfile(stdlib_zip)):
779+
if not py_setpath and not pythonpath_was_set and (not stdlib_zip or not isfile(stdlib_zip)):
780780
home_hint = f"The Python 'home' directory was set to {home!r}, is this correct?"
781781
if not stdlib_dir or not isdir(stdlib_dir):
782782
hint = home_hint if home else f'sys.prefix is set to {prefix}, is this correct?'

0 commit comments

Comments
 (0)