mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Python: only look for the py2 stdlib if we extract std lib
This commit is contained in:
committed by
yoff
parent
bb78c2a67e
commit
4a291147e0
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user