Skip to content

Commit

Permalink
fix bug with path expansion during config read
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Dec 4, 2023
1 parent 9577e2b commit 1e4b1eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions looper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,11 @@ def read_looper_config_file(looper_config_path: str) -> dict:
# Expand paths in case ENV variables are used
for k, v in return_dict.items():
if isinstance(v, str):
return_dict[k] = expandpath(v)

if isinstance(v, str):
v = expandpath(v)
if not os.path.isabs(v) and not is_registry_path(v):
return_dict[k] = os.path.join(config_dir_path, v)
else:
return_dict[k] = v

return return_dict

Expand Down

0 comments on commit 1e4b1eb

Please sign in to comment.