I notice I can `kedro run` from sub directories of...
# questions
m
I notice I can
kedro run
from sub directories of my project (which is awesome). Let's say I want to access the root directory of my project from a sub directory in a context outside of
kedro run
. Is there a helper function I can use that finds my project root?
https://github.com/kedro-org/kedro/pull/3683/files#diff-825cefbdd7316a96b9f08f28e4bca3d99a01eaa28cbfcca47763f2d996f2387fR48 I see a private utility that should work. Just confirming there is not a public one that is preferred!
n
I notice I can
kedro run
from sub directories of my project
We added this a few release ago, same go with most kedro command.
Is there a reason why you need to do that?
That's the function that we are using, but it's a private one so we don't guarantee that will not be change in the future.
m
I have a static
include
directory that contains front end code with parameters defined by running the kedro pipeline. In a downstream step, I merge the contents of the
include
directory with a parameters file built by the pipeline and deploy the application onto a server. In my app code, I have logic to look for the parameters file and if not found, load the parameters file from the kedro catalog
👀 1
n
Make sense!