[Python-Dev] os.path.diff(path1, path2)

Martin Blais blais at furius.ca
Wed Sep 14 18:40:38 CEST 2005

On 9/12/05, Nathan Bullock <nathan_kent_bullock at yahoo.ca> wrote:
> Just wondering if a function such as this has ever
> been considered? I find that I quite often want a
> function that will give me a relative path from path A
> to path B. I have created such a function, but it
> would be nice if it was in the standard library.

I also often have to plop a snippet of Python in my code to do the
same and always wonder why there isn't anything like that in the
standard library.

+1 for adding this to os.path, it would be very handy.

More information about the Python-Dev mailing list