From: Aravindh Johendran on
How do I get ccl to utilize the HOME environment variable on Windows?
By default it uses C:/Documents and Setting/<username> but I have
defined a home variable to point to D:/HOME
When I start up slime, ccl automatically creates a .slime folder in C:/
Documents and Setting/<username> as well.


Thanks
Aravindh
From: R. Matthew Emerson on
Aravindh Johendran <ajohendran(a)gmail.com> writes:

> How do I get ccl to utilize the HOME environment variable on Windows?
> By default it uses C:/Documents and Setting/<username> but I have
> defined a home variable to point to D:/HOME
> When I start up slime, ccl automatically creates a .slime folder in C:/
> Documents and Setting/<username> as well.

When deciding what to return from USER-HOMEDIR-PATHNAME, Clozure CL
doesn't pay attention to the HOME environment variable. On Windows, it
consults USERPROFILE; on Unix, it calls getpwuid.

See the source for the function GET-USER-HOME-DIR. You can try making
the obvious modification and then rebuilding the lisp with (rebuild-ccl
:clean t) to see if that does what you want.
From: Aravindh Johendran on
On Jun 10, 12:07 pm, r...(a)clozure.com (R. Matthew Emerson) wrote:
>
> When deciding what to return from USER-HOMEDIR-PATHNAME, Clozure CL
> doesn't pay attention to the HOME environment variable.  On Windows, it
> consults USERPROFILE;  on Unix, it calls getpwuid.
>
> See the source for the function GET-USER-HOME-DIR.  You can try making
> the obvious modification and then rebuilding the lisp with (rebuild-ccl
> :clean t) to see if that does what you want.

Worked like a charm, thanks.
Just curious, any particular reason for not going with HOME env
variable?