Entrypoint Utilities partis.pyproj.load_module#
- exception EntryPointError[source]#
Bases:
ValueError
- module_name_from_path(path, root)[source]#
Generates an importable module name from a file system path
- Parameters:
path¶ (pathlib.Path) – Path to the module directory relative to ‘root’
root¶ (pathlib.Path) – Base path from which the module will be imported
- load_entrypoint(entry_point, root)[source]#
- Parameters:
root¶ (pathlib.Path) – Root project directory.
- class EntryPoint(pyproj, root, name, logger, entry)[source]#
Bases:
object- Parameters:
pyproj¶ (PyProjBase) –
root¶ (pathlib.Path) – Root project directory.
logger¶ (logging.Logger) –
Entry point spec