Make a relative url path from an absolute path to another one

Thomas Guettler guettli at thomas-guettler.de
Mon Oct 27 09:14:51 EST 2003


Am Mon, 27 Oct 2003 15:18:38 +0100 schrieb Gilles Lenfant:

> Hi,
> 
> I'm sometimes brain dead for a simple problem like this one :
> 
> Given an origin absolute URL and a destination absolute URL, I want to make
> a relative path from the origin to the destination.

I did this some time ago:
http://guettli.sourceforge.net/gthumpy/src/relative_url.py

 Hope that helps,
   Thomas





More information about the Python-list mailing list