piglot.utils.assorted.read_custom_module

read_custom_module(config: Dict[str, Any], cls: Type[T]) Type[T][source]

Read a custom module from a configuration spec.

Parameters

configDict[str, Any]

Configuration of the custom module.

clsType

Base class of the module to load.

Returns

Type

Custom module type read from the script.