Skip to content

Commit

Permalink
Update path.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Feb 19, 2024
1 parent c78275e commit 6b9faef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/PyKotor/src/pykotor/tools/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ def __eq__(self, other):
return self._fix_path_formatting(str(other), slash="/").lower() == self.as_posix().lower()

def __repr__(self):
return f"{self.__class__.__name__}({', '.join(self.parts)})"
str_parts = ", ".join(f'"{part}"' for part in self.parts)
return f"{self.__class__.__name__}({str_parts})"

def __str__(self):
path_obj = pathlib.Path(self)
Expand Down

0 comments on commit 6b9faef

Please sign in to comment.