Gauthier Pierard
11/03/2025, 11:30 AMAnkita Katiyar
11/03/2025, 11:33 AMGauthier Pierard
11/03/2025, 12:01 PMkedro run --params my_dataset_path=xx but it doesnt seem to be supported directly?
instead i now use MY_DATASET_PATH=xx kedro run , after adding this in settings.py OmegaConf.register_new_resolver("env", lambda var, default=None: os.getenv(var, default)) , which interpolates directly into catalog_globals without a parameter.
I would still prefer to use a parameter rather than an envvar if possible, what do you recommend?Ankita Katiyar
11/03/2025, 1:47 PMruntime_params: resolver. https://docs.kedro.org/en/0.19.12/configuration/advanced_configuration.html#how-to-override-configuration-with[…]rameters-with-the-omegaconfigloader
Then your catalog entry should look like:
my_dataset:
type: <type>
filepath: "data/01_raw/${runtime_params:path}"
And you could run with kedro run --params path=pathGauthier Pierard
11/03/2025, 2:18 PM