-
Notifications
You must be signed in to change notification settings - Fork 27
Description
A config file shouldn't have a path to itself. It defeats the purpose.
If you don't have a config file, the env
or default config path should be used for defining it.
If you do have a config file, then changing the value in the config would be undefined behaviour because the new config file might have a different config_home_path
.
Most software that have a path to the config doesn't have it in the file itself, they it compute it, based on env
or other stuff, like default.
There's a lot of paths in the code base were a config file is written and it gets an argument for the path, sometimes direct path and sometimes a base path. This depends on #347 where there is a get_hoard_config_path()
function that will compute the path (but not create it).