mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
skip path exists
This commit is contained in:
parent
77a12f49f8
commit
8f6d78e4eb
1 changed files with 7 additions and 1 deletions
|
|
@ -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]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue