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

Predicate moduleNameFromFile

Gets the name of the module that c resolves to, if any.

Import path

import python
string moduleNameFromFile(Container c)