mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +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():
|
||||
f = LOCAL_CONFIG_FILE_OVERRIDE_VAR.get()
|
||||
if exists(expanduser(expandvars(f))):
|
||||
if f and exists(expanduser(expandvars(f))):
|
||||
return f
|
||||
for f in LOCAL_CONFIG_FILES:
|
||||
if exists(expanduser(expandvars(f))):
|
||||
|
Loading…
Reference in New Issue
Block a user