You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but by reading https://hydra.cc/docs/advanced/search_path/ it is possible to override the search path from a configuration parameter. Hence, in principle, I could run the script from any folder and then specify the search path, but this would break the assumption that my config folder is a subfolder of cwd.
So, how can I get the resolved path to the module_1.yaml file as a configuration parameter?
The text was updated successfully, but these errors were encountered:
I think the big problem of Hydra is that it does not even allow to get the config path from the code itself. You can get the config name and a list of sources, one of which was used to load this config file. I would suggest adding
Ability to get the loaded config path from the python code (e.g. populate the runtime)
Ability to make relative paths from the config file itself.
Hi there, great work! I am new to
hydra
and am looking for a way to have the absolute path to the configuration file itself in the parameters.Suppose to have a tree structure like the following
With
config.yaml
beingWithin
module_1.yaml
I would like to have something likeIn this way, in code, I could do something like
From #1680 I see it is possible to get the current working directory, but from https://hydra.cc/docs/0.11/configure_hydra/intro/#runtime-variables, this variable indicates the "Original working directory the app was executed from". I thought I could assume that
but by reading https://hydra.cc/docs/advanced/search_path/ it is possible to override the search path from a configuration parameter. Hence, in principle, I could run the script from any folder and then specify the search path, but this would break the assumption that my
config
folder is a subfolder ofcwd
.So, how can I get the resolved path to the
module_1.yaml
file as a configuration parameter?The text was updated successfully, but these errors were encountered: