Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #46 from erjiaqing/add_happy_main_conf_env
Browse files Browse the repository at this point in the history
Add config to specify main config file by env
  • Loading branch information
yunhanw-google committed Oct 13, 2020
2 parents 72102da + d18384f commit 95df345
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions happy/Driver.py
Expand Up @@ -140,6 +140,9 @@ def __init__(self):
self.log_conf_file = self.happy_path + "/" + log_config
self.main_conf_file = self.happy_path + "/" + main_config

if "HAPPY_MAIN_CONFIG_FILE" in os.environ.keys():
self.main_conf_file = os.environ["HAPPY_MAIN_CONFIG_FILE"]

self.__configure()
self.readConfiguration()
self.configHappyLogPath()
Expand Down

0 comments on commit 95df345

Please sign in to comment.