31 Jan
2008
31 Jan
'08
7:19 p.m.
Hi All,
I'm just working on a rendering extension, which needs to access a collection of source data files. Really I'd like to add a sub-directory to the extension scripts directory, but I'm having difficulty accessing the sub-directory, because when my script starts, it's working directory seems to be my home directory not the extension directory. So if I call the line
inkex.etree.parse( "my-sub-dir/data.svg" )
it only returns successfully if my-sub-dir is in my home directory. Does anyone have any suggestions how to access my data files from their installation directory?
Thanks Joel