skip path exists

This commit is contained in:
Jakub Trllo 2024-01-25 12:41:15 +01:00
parent 77a12f49f8
commit 8f6d78e4eb

View file

@ -28,8 +28,14 @@ def concatenate_splitted_paths(split_paths, anatomy):
# backward compatibility
if "__project_root__" in path_items:
for root, root_path in anatomy.roots.items():
if not root_path:
if not root_path or not os.path.exists(str(root_path)):
log.debug(
"Root {} path path {} not exist on computer!".format(
root, root_path
)
)
continue
root_items = [
"{{root[{}]}}".format(root),
"{project[name]}"