Support specifing config with environment variable AQT_CONFIG

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2020-03-07 10:23:08 +09:00
parent 355872480b
commit 3b99475f9b

View File

@@ -45,8 +45,9 @@ class Cli():
__slot__ = ['parser', 'combinations', 'logger']
def __init__(self):
self.settings = Settings()
def __init__(self, env_key='AQT_CONFIG'):
config = os.getenv(env_key, None)
self.settings = Settings(config=config)
self._create_parser()
def _check_tools_arg_combination(self, os_name, tool_name, arch):