[PythonCE] os.chdir difficulty

Isr Gish isrgish at fastem.com
Wed Jul 28 01:04:52 CEST 2004


Hi all,
It seems that os.chdir(..) when passed something like this '../tools' it doesn't know what to do with it, it just adds it on the way it is to the end of the path. For example if I have a current path of,
'\\Program Files\\Python\\lib\\site-packages\\reportlab\\docs'
Then I would get,
'\\Program Files\\Python\\lib\\site-packages\\reportlab\\docs\\../tools'

But if I use backslashes like this '..\\tools', then it works fine and I get what I was looking for.
'\\Program Files\\Python\\lib\\site-packages\\reportlab\\tools'

Any help would be appreciated,
Isr



More information about the PythonCE mailing list