On Fri, 2005-03-25 at 13:29, Vadim V. Zhytnikov wrote:
> Andreas J. Guelzow writes:
>
> > On Thu, 2005-24-03 at 21:02 +0300, Vadim V. Zhytnikov wrote:
> >
> >>===============================================================================
> >>I think that Maxima defaults on Windows is perfectly OK.
> >>The "C:/Documents and Settings/vadim" above is user's home dir
> >>on Windows.
> >
> >
> > Isn't the C: drive typically the local hard drive? Then is really
> > shouldn't be the users home directory unless one has a single computer.
> >
> > Andreas
> >
>
>
> As far as I undrestand this "C:/Documents and Settings/..."
> is not hard-wired into Maxima. This is curren user
> home dir and is probably derived from HOMEDRIVE and
> HOMEPATH environment variables (but I can't readily
> find which part of code is responsible for that).
> This is true for xmaxima but not for console
> maxima.bat - the thing worth fixing for forthcoming
> Windows Maxima builds.
The internal maxima variable that matters is *maxima-userdir*. It is set
by the function set-pathnames (from init-cl.lisp) to be either the value
of the environment variable MAXIMA_USERDIR if it exists, or the result
of the function default-userdir (also from init-cl.lisp).
The xmaxima file Paths.tcl sets MAXIMA_USERDIR.
--Jim