Python module to convert between Windows and POSIX path in WSL
Project description
wslPath
wslPath
is a Python module to convert between Windows and POSIX path in WSL
Examples
import wslPath
pathwin = "hoge\\fuga"
wslPath.toPosix(pathwin)
# -> "hoge/fuga"
pathwin = "C:\\hoge\\fuga"
wslPath.toPosix(pathwin)
# -> "/mnt/c/hoge/fuga"
pathposix = "hoge/fuga"
wslPath.toWindows(pathposix)
# -> "hoge\\fuga"
pathposix = "/mnt/c/hoge/fuga"
wslPath.toWindows(pathposix)
# -> "C:\\hoge\\fuga"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.