normalize path

This commit is contained in:
Jakub Trllo 2023-01-19 12:38:22 +01:00
parent 67e10bfd43
commit bfed990e4f

View file

@ -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