CodeQL library for Python
codeql/python-all 2.0.1-dev (changelog, source)
Search

Member predicate ImportExpr::getImportedModuleName

Gets the full name of the module resulting from evaluating this import. NOTE: This is the name that used to import the module, which may not be the name of the module.

string getImportedModuleName()