From 813dc264888c6a3a4c136ba07bc93cdf8046434c Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Thu, 19 Jan 2023 15:33:32 +0100 Subject: [PATCH] clean repre path too --- openpype/tools/push_to_project/control_integrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/tools/push_to_project/control_integrate.py b/openpype/tools/push_to_project/control_integrate.py index 7e518d80428..8457f2d9107 100644 --- a/openpype/tools/push_to_project/control_integrate.py +++ b/openpype/tools/push_to_project/control_integrate.py @@ -416,7 +416,7 @@ def _get_source_files_with_frames(self): fill_roots[root_name] = "{{root[{}]}}".format(root_name) repre_path = StringTemplate.format_template( template, fill_repre_context) - repre_path = repre_path.replace("\\", "/") + repre_path = self._clean_path(repre_path) src_dirpath, src_basename = os.path.split(repre_path) src_basename = ( re.escape(src_basename) @@ -468,7 +468,7 @@ def _get_source_files(self): fill_roots[root_name] = "{{root[{}]}}".format(root_name) repre_path = StringTemplate.format_template(template, fill_repre_context) - repre_path = repre_path.replace("\\", "/") + repre_path = self._clean_path(repre_path) src_dirpath = os.path.dirname(repre_path) for file_info in self._repre_doc["files"]: filepath_template = self._clean_path(file_info["path"])