class documentation
class PathEntry(_ModuleIteratorHelper): (source)
Constructor: PathEntry(filePath, pythonPath)
I am a proxy for a single entry on sys.path.
Method | __init__ |
Create a PathEntry. This is a private constructor. |
Method | __repr__ |
Undocumented |
Instance Variable | file |
a FilePath-like object pointing at the filesystem location or archive file where this path entry is stored. |
Instance Variable | python |
a PythonPath instance. |
Method | _get |
Implement in subclasses to specify what path entry submodules will come from. |
Method | _package |
Implement in subclasses to specify where to look for modules. |
Inherited from _ModuleIteratorHelper
:
Method | __getitem__ |
Retrieve a module from below this path or package. |
Method | __iter__ |
Implemented to raise NotImplementedError for clarity, so that attempting to loop over this object won't call __getitem__. |
Method | iter |
Loop over the modules present below this entry or package on PYTHONPATH. |
Method | walk |
Similar to iterModules , this yields self, and then every module in my package or entry, and every submodule in each package or entry. |
Method | _sub |
This is a hook to provide packages with the ability to specify their names as a prefix to submodules here. |
a FilePath-like object pointing at the filesystem location or archive file where this path entry is stored.
Implement in subclasses to specify what path entry submodules will come from.
Returns | |
a PathEntry instance. |