mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Python: Copy Python extractor to codeql repo
This commit is contained in:
10
python/extractor/python_imports.py
Executable file
10
python/extractor/python_imports.py
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
'''This module sets up sys.path from the environment
|
||||
and runs the .import file generation.'''
|
||||
|
||||
import python_tracer
|
||||
|
||||
if __name__ == "__main__":
|
||||
python_tracer.load_library()
|
||||
import semmle.imports
|
||||
semmle.imports.main()
|
||||
Reference in New Issue
Block a user