Skip to content

Commit 4a29114

Browse files
committed
Python: only look for the py2 stdlib if we extract std lib
1 parent bb78c2a commit 4a29114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/extractor/semmle/populator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def main(sys_path = sys.path[:]):
6767
update_analysis_version(last_version)
6868

6969
found_py2 = False
70-
if get_analysis_major_version() == 2:
70+
if get_analysis_major_version() == 2 and options.extract_stdlib:
7171
# Setup `sys_path` to use the Python 2 standard library
7272
sys_path, found_py2 = get_py2_sys_path(logger, sys_path)
7373

0 commit comments

Comments
 (0)