mirror of
https://github.com/clearml/clearml
synced 2025-06-16 11:28:31 +00:00
Fix get_active_config_file() crashing
This commit is contained in:
parent
9014f2e680
commit
bdd8d224ac
@ -59,7 +59,7 @@ def is_config_file(path):
|
|||||||
|
|
||||||
def get_active_config_file():
|
def get_active_config_file():
|
||||||
f = LOCAL_CONFIG_FILE_OVERRIDE_VAR.get()
|
f = LOCAL_CONFIG_FILE_OVERRIDE_VAR.get()
|
||||||
if exists(expanduser(expandvars(f))):
|
if f and exists(expanduser(expandvars(f))):
|
||||||
return f
|
return f
|
||||||
for f in LOCAL_CONFIG_FILES:
|
for f in LOCAL_CONFIG_FILES:
|
||||||
if exists(expanduser(expandvars(f))):
|
if exists(expanduser(expandvars(f))):
|
||||||
|
Loading…
Reference in New Issue
Block a user