From 8f6d78e4eb9985efa689a7c7a1548bcde5231a14 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Thu, 25 Jan 2024 12:41:15 +0100 Subject: [PATCH] skip path exists --- openpype/pipeline/project_folders.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openpype/pipeline/project_folders.py b/openpype/pipeline/project_folders.py index ecdb5cf6d3..608344ce03 100644 --- a/openpype/pipeline/project_folders.py +++ b/openpype/pipeline/project_folders.py @@ -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]}"