Loads Python files from the filesystem (e.g. ``tasks.py``.) Searches recursively towards filesystem root from a given start point. .. versionadded:: 1.0
Method | __init__ |
Set up a new loader with some `.Config`. |
Method | find |
Implementation-specific finder method seeking collection ``name``. |
Property | start |
Undocumented |
Instance Variable | _start |
Undocumented |
Inherited from Loader
:
Method | load |
Load and return collection module identified by ``name``. |
Instance Variable | config |
Undocumented |
invoke.loader.Loader.__init__
Set up a new loader with some `.Config`. :param config: An explicit `.Config` to use; it is referenced for loading-related config options. Defaults to an anonymous ``Config()`` if none is given.
invoke.loader.Loader.find
Implementation-specific finder method seeking collection ``name``. Must return a 4-tuple valid for use by `imp.load_module`, which is typically a name string followed by the contents of the 3-tuple returned by `imp.find_module` (``file``, ``pathname``, ``description``.) For a sample implementation, see `.FilesystemLoader`. .. versionadded:: 1.0