This commit is contained in:
Daniel Rojas 2021-03-27 14:03:49 +01:00
parent 33533407ec
commit 14565ec8f5

View File

@ -126,7 +126,7 @@ def smart_file_resolve(filename, possible_paths):
return filename
else:
raise Exception(f'{filename} does not exist.')
else: # sarch all possible paths in decreasing order of precedence
else: # search all possible paths in decreasing order of precedence
possible_paths = [Path(path).resolve() for path in possible_paths]
for possible_path in possible_paths:
resolved_path = (possible_path / filename).resolve()