workingdir

Discussion of Common Lisp
Post Reply
burton
Posts: 10
Joined: Sat Aug 28, 2010 6:05 pm

workingdir

Post by burton » Tue Aug 31, 2010 7:41 am

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

edgar-rft
Posts: 226
Joined: Fri Aug 06, 2010 6:34 am
Location: Germany

Re: workingdir

Post by edgar-rft » Tue Aug 31, 2010 1:09 pm

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

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: workingdir

Post by nuntius » Tue Aug 31, 2010 8:03 pm


sinnatagg
Posts: 29
Joined: Tue Apr 21, 2009 3:04 am

Re: workingdir

Post by sinnatagg » Wed Sep 01, 2010 1:34 am

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

Post Reply