capturing input file directory at runtime



Hi list,

I have the following use case:
I distribute a tree of html files containing links to wxmaxima files. 
This works fine as long as maxima input files are self-contained.
However I would like to use a function definition which is quite large 
in several input files.
load("f.mac") could work but I don't know where the html file tree is 
installed and I have no access to the runtime installation of maxima.

So my question is: is it possible to retrieve the location of the maxima 
input file at runtime in order to be able to load a file installed in 
the same directory?

Regards

-- 
Jean-Fran?ois MAUREL
PIMECA
http://www.pimeca.com