mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
Support specifing config with environment variable AQT_CONFIG
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user