[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
  
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?
    

Use posixpath.normpath() instead.

  
I can't seem to find posixpath in the docs, but I can import posixpath and a dir shows it does indeed have a normpath.

-h

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to