Skip to content
Snippets Groups Projects
Commit 306a5cb5 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix environment variable name

parent cffd7281
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ def initialize_config(application_name: str, default_config: str) -> dict:
# Generate a environment variable name from the application name
# E.g. "foo bar" becomes "FOO_BAR_CONFIG_PATH"
config_path_environment_variable = "{}_CONFIG_DIR".format(application_name.upper().replace(" ", "_"))
config_path_environment_variable = "{}_CONFIG_DIR".format(application_name.upper().replace(" ", "_").replace("-", "_"))
# If the environment variable is set, use that as a config path, otherwise use the default one
config_dir = this_or_else(os.environ.get(config_path_environment_variable), dirs["config"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment