Page 1 of 1

workingdir

Posted: Tue Aug 31, 2010 7:41 am
by burton
hi, whats the default working directory of clisp 2.48, where i can load my files from?
tried to run clisp with a batchfile to do my own dir, but it didn't work...

thanx

Re: workingdir

Posted: Tue Aug 31, 2010 1:09 pm
by edgar-rft
The initial CLISP working directory normally is the same as the current working directory of the terminal or shell that CLISP had been started from.

You can find out your current working directory from within CLISP by typing:

Code: Select all

[1]> (cd)
=> #p"name-of-current-working-directory"
-> http://clisp.cons.org/impnotes.html#cd
-> http://clisp.cons.org/impnotes.html#default-dir

You can also customize CUSTOM:*LOAD-PATHS* to tell CLISP where to search for Lisp files you want to be loaded:

-> http://clisp.cons.org/impnotes.html#load-paths

Warning: the docs at the CLISP home page are a single, rather huge HTML file, I usually download the 'clisp-x.xx-impnotes.zip' from:

-> http://sourceforge.net/projects/clisp/files/

On the SourceForge page, under 'All Files', open the yellow folder of your CLISP version, and there you'll find it. The zip-file contains a reasonably formatted HTML version of the CLISP impnotes for offline reading.

P.S.: CLISP 2.48 is already obsolete, the current CLISP version is 2.49...

Re: workingdir

Posted: Tue Aug 31, 2010 8:03 pm
by nuntius

Re: workingdir

Posted: Wed Sep 01, 2010 1:34 am
by sinnatagg
There's the load/compiletime *load-pathname* and *compile-file-pathname* that you can grab if you want to load other resources from the same place. If you're loading via asdf there's system-directory or somesuch.


-a