add new config pattern for database URI and overrides

This commit is contained in:
dandds 2018-07-30 10:15:48 -04:00
parent 92e65e7595
commit 41135d0b2f

View File

@ -79,6 +79,10 @@ def make_config():
config = ConfigParser()
config.optionxform = str
config_files = [BASE_CONFIG_FILENAME, ENV_CONFIG_FILENAME]
if OVERRIDE_CONFIG_FILENAME:
config_files.append(OVERRIDE_CONFIG_FILENAME)
config_files = [BASE_CONFIG_FILENAME, ENV_CONFIG_FILENAME]
if OVERRIDE_CONFIG_FILENAME:
config_files.append(OVERRIDE_CONFIG_FILENAME)