changes for better support

This commit is contained in:
Félix David 2022-12-08 13:06:10 +01:00
parent 89c5fdfb27
commit 367b7b262e
2 changed files with 2 additions and 2 deletions

View file

@ -422,7 +422,7 @@ class TemplateResult(str):
cls = self.__class__
return cls(
os.path.normpath(self),
os.path.normpath(self.replace("\\", "/")),
self.template,
self.solved,
self.used_values,

View file

@ -555,7 +555,7 @@ def get_representation_path_with_anatomy(repre_doc, anatomy):
"""
try:
template = repre_doc["data"]["template"].replace("\\", "/")
template = repre_doc["data"]["template"]
except KeyError:
raise InvalidRepresentationContext((