xinclude and pathnames

Fredrik Lundh fredrik at pythonware.com
Thu Sep 14 13:07:45 EDT 2006


Rob Williscroft wrote:

> The default handler just sees the href value as a filename, so you
> should be able to use a relative path if you os.chdir() to the working
> directory before processing you xml file.

and if that's not good enough, writing a custom loader is trivial (see 
the default_loader implementation in ElementInclude.py for details).

</F>




More information about the Python-list mailing list