Fix set_credentials uses incorrect config file

This commit is contained in:
allegroai 2021-04-28 18:45:45 +03:00
parent f93c0dddf0
commit b21e932726

View File

@ -69,5 +69,5 @@ def get_active_config_file():
def get_config_file():
f = LOCAL_CONFIG_FILE_OVERRIDE_VAR.get()
f = f if f else LOCAL_CONFIG_FILES[0]
f = f if f else LOCAL_CONFIG_FILES[-1]
return expanduser(expandvars(f)) if f else None