[Maxima] How to open a file given its pathname relative to the current batch script
robert.dodier at gmail.com
Tue Nov 24 15:41:13 CST 2009
On Tue, Nov 24, 2009 at 12:17 PM, Manuel Fiorelli
<manuel.fiorelli at gmail.com> wrote:
> I'd like to define a function which generates relative pathnames using
> :lisp (defun $relative_filename ($name) (namestring
> Unfortunately, the argument "name" of filename_merge isn't bound to
> the parameter name of the function "relative_filename"
Probably there's some unintended effect of the #$ macro here.
I think it's more predictable to just stay in Lisp, e.g.:
(defun $relative_filename (name) (namestring ($filename_merge
($extract_filename $x) name)))
... although I guess I don't see a need for relative_filename;
it seems like filename_merge + extract_filename is enough.
More information about the Maxima