Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
clean repre path too
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jan 19, 2023
1 parent aab842e commit 813dc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpype/tools/push_to_project/control_integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"])
Expand Down

0 comments on commit 813dc26

Please sign in to comment.