Module delta.config.modules

Registers all config modules.

Functions

def register_all()

Register all default config modules.

Classes

class ExtensionsConfig

Configuration component for extensions.

Parameters

section_header : Optional[str]
The title of the section for command line arguments in the help.
Expand source code
class ExtensionsConfig(DeltaConfigComponent):
    """
    Configuration component for extensions.
    """
    def __init__(self):
        super().__init__()

    # register immediately, don't override
    def _load_dict(self, d : dict, base_dir):
        if not d:
            return
        if isinstance(d, list):
            for ext in d:
                register_extension(ext)
        elif isinstance(d, str):
            register_extension(d)
        else:
            raise ValueError('extensions should be a list or string.')

Ancestors

Inherited members