Hi all! Just a quick one, is it possible to refer...
# questions
Hi all! Just a quick one, is it possible to reference the CONF_SOURCE value in the templates?
data_folder: ${CONF_SOURCE}/data
This obviously doesn’t works, but you get the idea. Many thanks! ☺️
you can sort of do this, but i’d actually like to learn more about what you’re trying to do?
We have a structure with two elements: • The compiled Kedro project. • The conf folder deployed to an arbitrary location
[Errno 2] No such file or directory: '/Users/godoy/data/01_raw/ASF_202207.csv'
~ ❯ pwd
~ ❯ head -1 /tmp/tests/conf/base/globals.yml
data_folder: "data/
Resolving the final conf path from CONF_SOURCE (not the working one) will be much more convenient for us.
so in the latest version of 0.18.5 just released you can provide this on the CLI https://kedro-org.slack.com/archives/C03RKAQ0MGQ/p1676992416724269
yes, that’s what we are doing, ex:
kedro_cmd = f"--pipeline {pipeline} --conf-source {_conf_path_}"
we reach the conf folder, but any path used there is resolved from the launcher working path
Okay then you want that same path in a parameter or in a in catalog dataset path?
just to be able to access the value in the templates, BTW we can access this requirement using ENV vars, but I was wondering if there is a more direct way
so env vars are the lowest cost way of doing this
ok! many thanks and keep the amazing job!
K 1
🎉 1