If this search fails, it will also try the PATH environment variable. The resource module is centered around the concept of resources . A Python package. A directory and subdirectories. All of the Python resources know how to analyze themselves and find their Python and binary dependencies.
Binary resources know how to find their own binary dependencies.
All resources have a contents method. For a singular type, this just returns a list with itself as the only entry. The tocfilter module has a bunch of different classes corresponding to the different ways of excluding files. The ltoc module is concerned with managing lists of resources. It is generally list-like, with a couple twists.