os.path.normpath

nathanbullock at gmail.com nathanbullock at gmail.com
Wed Aug 9 14:45:44 EDT 2006


I am using a windows box and passing a string like "../foo/../foo2" to
normpath which then returns "..\\foo2". But if this string is going
into a webpage link it should really be "../foo".

Is there any way to tell os.path.normpath to act like we are an a unix
style box?

What about in the new python 2.5 Path class?

Nathan




More information about the Python-list mailing list