rlightning.utils.registry.modules_loader

rlightning.utils.registry.modules_loader.load_modules_from_config(config: MockModule('omegaconf.DictConfig')) None[source]

Dynamically loads Python modules specified in the configuration.

This function looks for a list under the imports key in the provided Hydra config. If found, it iterates through the list and imports each module. This is useful for registering plugins or other components at runtime without modifying the core codebase.

Parameters:

config (DictConfig) – The Hydra configuration object.