Python: only look for the py2 stdlib if we extract std lib

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-10-10 13:45:08 +02:00
committed by yoff
parent bb78c2a67e
commit 4a291147e0

View File

@@ -67,7 +67,7 @@ def main(sys_path = sys.path[:]):
update_analysis_version(last_version)
found_py2 = False
if get_analysis_major_version() == 2:
if get_analysis_major_version() == 2 and options.extract_stdlib:
# Setup `sys_path` to use the Python 2 standard library
sys_path, found_py2 = get_py2_sys_path(logger, sys_path)