Skip to content

Commit 81d8661

Browse files
committed
Added justification for why 'posix_path' returns a string
1 parent c3e76ee commit 81d8661

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/murfey/util/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ def posix_path(path: Path) -> str:
8787
Converts a Windows-style path into a Posix one. Used primarily when running
8888
subproceses in bash terminals on Windows devices, which can only accept
8989
Posix paths.
90+
91+
Returns it as a string because this path won't be recognised as an existing
92+
path when converted to a Path object.
9093
"""
9194
path_parts = list(path.parts)
9295
# Check if it's a Windows-style path and converts it to a Posix one

0 commit comments

Comments
 (0)