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

Predicate API :: Impl :: isImported

Holds if the module name is imported.

This is determined syntactically.

Import path

import semmle.python.ApiGraphs
predicate isImported ( string name )