Title
#advanced-need-help
antony.milne

antony.milne

07/13/2022, 11:01 AM
An alternative would be to instead use this code in
register_pipelines
(which is how the config loader is instantiated internally):
import settings 
config_loader_class = settings.CONFIG_LOADER_CLASS
config_loader_class(
    conf_source=str(self._project_path / settings.CONF_SOURCE),
    env=env,
    runtime_params=extra_params,
    **settings.CONFIG_LOADER_ARGS,
)
To get this working fully you still need to get
env
and
extra_params
into
register_pipelines
. I think the cleanest way to do that is again through the
after_context_created
hook, but in theory you could just directly extract it from the CLI arguments if you always run kedro that way.