Convert Windows paths to Linux style paths

Malcolm Greene python at bdurham.com
Tue Mar 12 10:51:12 EDT 2019


Looking for best practice technique for converting Windows style paths to Linux paths. Is there an os function or pathlib method that I'm missing or is it some combination of replacing Windows path separators with Linux path separators plus some other platform specific logic?

Thank you,
Malcolm


More information about the Python-list mailing list