diff --git a/common_config/common.py b/common_config/common.py index 649a78af18378ea669b572938abcc1a9cc7bfe84..af7d9ba56bf7766502893059b0e933b590785d83 100755 --- a/common_config/common.py +++ b/common_config/common.py @@ -383,8 +383,8 @@ def create_config(): 1. DEFAULT_CONFIG (use config default to inspect) 2. /etc/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) 3. $XDG_CONFIG_HOME/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) -4. ${APPLICATION_NAME}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) -5. ${APPLICATION_NAME}_CONFIG_PATH (final override) +4. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) +5. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_PATH (final override) (Each overriding the fields in the previous one, where set) """ @@ -518,8 +518,8 @@ Configuration files are read from the following locations: 1. DEFAULT_CONFIG (see below) 2. /etc/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) 3. $XDG_CONFIG_HOME/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) -4. ${APPLICATION_NAME}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) -5. ${APPLICATION_NAME}_CONFIG_PATH (final override) +4. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) +5. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_PATH (final override) (Each overriding the fields in the previous one, where set) diff --git a/pyproject.toml b/pyproject.toml index 113508009f4dacd361ad77f512e4fda064849e8d..761e42191cd8fee2806b1f7044af54b311fba0d0 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "common-config" -version = "0.1.21" +version = "0.1.22" description = "A config library for python based services" authors = ["David Huss <dh@atoav.com>"]