mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
normalize path
This commit is contained in:
parent
67e10bfd43
commit
bfed990e4f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue