Subject: capturing input file directory at runtime
From: Michel Talon
Date: Sun, 6 Jan 2013 22:53:32 +0000 (UTC)
jfr.maurel at gmail.com wrote:
> 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
>
I think that manipulation of
load_pathname
file_search_maxima or file_search_lisp
should allow you to run around your problem.
--
Michel Talon