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
workingdir
Re: workingdir
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:
-> 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...
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#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...
Last edited by edgar-rft on Wed Sep 01, 2010 3:52 am, edited 1 time in total.
Re: workingdir
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
-a