[Python-ideas] Support os.path.join for Windows paths on Posix

אלעזר elazarg at gmail.com
Wed Oct 30 23:43:19 CET 2013


2013/10/31 Ryan Gonzalez <rymg19 at gmail.com>:
>>>> import os
>>>> os.path.join('C:\\', 'x.jpg')
> 'C:\\/x.jpg'
>>>>
>
> Isn't something wrong there? My idea: check for \'s in the path. If there
> are any, assume \ is the path separator, not /.

No, nothing is wrong:

C:\Dev>cd C:\/temp

C:\Temp>


More information about the Python-ideas mailing list