Skip to content
Snippets Groups Projects
Commit f3efe0cd authored by David Douard's avatar David Douard
Browse files

Allow to override config file name via the SWH_CONFIG_FILENAME env var

this will take precedence over the implicit config file scheme.

Related to T1410 and T826
parent cc65e0f7
No related branches found
No related tags found
1 merge request!41Allow to override config file name via the SWH_CONFIG_FILENAME env var
......@@ -338,6 +338,8 @@ class SWHConfig:
if config_filename:
config_filenames = [config_filename]
elif 'SWH_CONFIG_FILENAME' in os.environ:
config_filenames = [os.environ['SWH_CONFIG_FILENAME']]
else:
if not base_filename:
base_filename = cls.CONFIG_BASE_FILENAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment