title: Get the path of the script that is currently executing in Steel Bank Common Lisp
body: <p>I'm calling a CL script from various places in the system. How do I get the file path of the script that is currently executed?</p>
  
  <p>For example, the script source file is located in the <code>/home/user/project/source/</code> directory. The script is being executed from the <code>/home/user/</code> directory in the following manner:</p>
  
  <p><code>user@machine:~$ ./project/source/script.lsp</code></p>
  
  <p>Regardless of the callers location, script should know that it's located in the <code>/home/user/project/source/</code> directory.</p>
  
  <p>I've tried using the <code>*default-pathname-defaults*</code> variable, but the following command shows the directory from which the script was called:</p>
  
  <p><code>(format t "Pathname: ~S~&amp;" *default-pathname-defaults*)</code></p>
  
  <p><em>Environment: SBCL 1.4.5.debian on Ubuntu 18.04.</em></p>