setting path separator

John Hunter jdhunter at
Tue Mar 18 20:19:39 CET 2003

I am trying to compile pygtk in the msys terminal that comes with
mingw.  But all the calls in and friends generate paths with
'\\' as the separator, not '/'.  This screws mingw up.  I naively
tried setting os.sep='/' at the top of but this failed.  

Is it possible to force python to use a given separator for calls to

John Hunter


More information about the Python-list mailing list