Suresh Jeevanandam wrote:
> Hi,
>     a = '/home/suresh/doc/html/a1/'
>     b = '/home/suresh/doc/'
> 
> I am looking for a standard function which will return the location of b 
> relative to a i.e. '../..'

Jason Orendorff's path module has a method for this (relpathto()).
http://www.jorendorff.com/articles/python/path/index.html

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

Reply via email to