title: Load file with a relative path
body: <p>I am trying to load a file in Lisp from a file in the same directory using a relative path.</p>
  
  <p>My file structure looks like this:</p>
  
  <pre><code>repo/
      subdir/
          main.lisp
          test.lisp
  </code></pre>
  
  <p>In <code>main.lisp</code> I have a number of function definitions, and in <code>test.lisp</code> I want to test the functions.</p>
  
  <p>I have tried using <code>(load "main.lisp")</code> and <code>(load "main")</code> in <code>test.lisp</code>, as well as a number of variations on the pathname (i.e., including <code>./</code> before the filename) but both times I get the following error (where <code>&lt;filename&gt;</code> is the filename passed to the load function):</p>
  
  <p><code>File-error in function LISP::INTERNAL-LOAD:  "&lt;filename&gt;" does not exist.</code></p>
  
  <p>Is it possible to load <code>main.lisp</code> using a relative path?</p>
  
  <p>It may be worth noting that I am running <a href="http://www.cons.org/cmucl/" rel="noreferrer">CMUCL</a> and executing the code using <a href="https://github.com/wuub/SublimeREPL" rel="noreferrer">SublimeREPL</a> inside of Sublime Text 3.</p>