From bfed990e4fb9b20957d86e2817c2c61669519488 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Thu, 19 Jan 2023 12:38:22 +0100 Subject: [PATCH] normalize path --- openpype/tools/push_to_project/control_integrate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openpype/tools/push_to_project/control_integrate.py b/openpype/tools/push_to_project/control_integrate.py index 819724ad4c..5cc9dbc3bb 100644 --- a/openpype/tools/push_to_project/control_integrate.py +++ b/openpype/tools/push_to_project/control_integrate.py @@ -419,7 +419,9 @@ class ProjectPushRepreItem: src_basename_regex = re.compile("^{}$".format(src_basename)) for file_info in self._repre_doc["files"]: filepath_template = file_info["path"].replace("\\", "/") - filepath = filepath_template.format(root=self._roots) + filepath = os.path.normpath( + filepath_template.format(root=self._roots) + ) dirpath, basename = os.path.split(filepath_template) if ( dirpath != src_dirpath