How to change SBCL's current directory?

前端 未结 5 1899
孤街浪徒
孤街浪徒 2021-02-08 10:25

It is very easy to change CLisp\'s current working directory:

>cat ~/.clisprc.lisp 
;;; The following lines added by ql:add-to-init-file:
#-quicklisp         


        
5条回答
  •  失恋的感觉
    2021-02-08 11:12

    Had the same question. Turns out

    (setf *default-pathname-defaults* (truename "./subdir"))
    

    changes load path to subdir. If you don't want relative path, then

    (setf *default-pathname-defaults* (truename "/absolute/path"))
    

提交回复
热议问题