common lisp - get path to file

后端 未结 5 2393
南旧
南旧 2021-02-19 19:49

In Common Lisp, is there a way to get the path to a compiled file (something like current-directory)?

The file is not inside the current-directory folder.

5条回答
  •  遇见更好的自我
    2021-02-19 20:03

    *load-truename* resp. *load-pathname* gives you what you need.

    http://www.lispworks.com/documentation/HyperSpec/Body/v_ld_pns.htm

提交回复
热议问题