Further modifications to paths

This commit is contained in:
doctorpangloss
2024-08-05 17:06:18 -07:00
parent 39c6335331
commit b00964ace4
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -58,4 +58,4 @@ def get_package_as_path(package: str, subdir: Optional[str] = None) -> str:
def canonicalize_path(path: os.PathLike | str | None) -> str | None:
if path is None:
return None
return PurePath(path).as_posix()
return PurePath(str(path).replace("\\", "/")).as_posix()