Skip to content

Commit ec46959

Browse files
committed
Envvar for config file location
1 parent 01a2015 commit ec46959

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dashboard/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def from_file(self, config_file):
5757
:param config_file: a string pointing to the location of the config-file
5858
"""
5959

60+
config = os.getenv('DASHBOARD_CONFIG')
61+
if config:
62+
config_file = config
63+
6064
parser = configparser.RawConfigParser()
6165
try:
6266
parser.read(config_file)

0 commit comments

Comments
 (0)