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

Member predicate Make::Container::getRelativePath

Gets the relative path of this file or folder from the root folder of the analyzed source location. The relative path of the root folder itself is the empty string.

This has no result if the container is outside the source root, that is, if the root folder is not a reflexive, transitive parent of this container.

string getRelativePath()