lundybernard / batconf

Application configuration tool from the BAT project
MIT License
2 stars 0 forks source link

remove module/path args #3

Open lundybernard opened 3 years ago

lundybernard commented 3 years ago

Remove the path and mod arguments from the Configuration, and source .get methods. These should not be necessary, and we should be able to rely on the name argument to .get() being either a single key on that config object, or a dot-separated module path to the key.

lundybernard commented 5 months ago

This may fix a bug with arbitrary values in config sources. Currently, if a config source contains a key that does not lie on the module source tree, and you try to access it, it will fail to follow the path more than 1 step off of the module tree. to test, create a Config source with a structure that does not match the module, add it to your config sources list, and try accessing an arbitrary leaf.