cross platform accessing paths (windows, linux ...)

Vlastimil Brom vlastimil.brom at gmail.com
Fri Mar 13 10:20:40 CET 2009


2009/3/13 hendra kusuma <penguinroad at gmail.com>:
> you may want to use os.sep to replace manually written "/" "\" ":" for each
> os
> I heard that unix/linux use "/" as directory separator while windows use "\"
> and mac os use ":"
>
Thanks for the notice about the ":" path separator on mac;
windows uses "\" but normally also accepts "/".
Now I see, the diversity is yet greater, than I thought (cf.
http://en.wikipedia.org/wiki/Path_(computing)

regards
   Vlasta



More information about the Python-list mailing list