xinclude and pathnames

Tim Arnold tiarno at sas.com
Thu Sep 14 22:54:59 CEST 2006


"Fredrik Lundh" <fredrik at pythonware.com> wrote in message 
news:mailman.99.1158253686.10491.python-list at python.org...
> 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>

Thanks for the information--I just tested Rob's idea, which works fine for 
my case. You guys saved me a bunch of hair-pulling. I'm going to check out 
the default_loader implementation too.

--Tim Arnold





More information about the Python-list mailing list