From: Aravindh Johendran on 9 Jun 2010 05:05 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 10 Jun 2010 12:07 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 13 Jun 2010 02:18 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?
|
Pages: 1 Prev: [ANN] Call for Papers for 2010 Workshop on Scheme and Functional Programming Next: cl-weblocks |