Search code examples
lispcommon-lispasdf

Is there a way to determine the directory the file being executed resides in?


And if so, is there way that asdf can import a symbol that is calculated in runtime.

I'm trying to to specify the directory on which the project resides so the test runner can find the input files and also when I run from the repl.


Solution

  • Yes, system-relative-pathname and system-source-directory are your friends. At least if you execute from source.