setting path separator

John Hunter jdhunter at ace.bsd.uchicago.edu
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 setup.py and friends generate paths with
'\\' as the separator, not '/'.  This screws mingw up.  I naively
tried setting os.sep='/' at the top of setup.py but this failed.  

Is it possible to force python to use a given separator for calls to
os.path.join?

Thanks,
John Hunter

python2.2






More information about the Python-list mailing list