title: How to get source directory on secondary workers in Julia?
body: <p>I find using <code>Base.source_dir()</code> super convenient for <code>include</code>ing files into a Julia script because it is easy to load everything using relative paths from the script file. This doesn't work properly with parallelized code. For example, if we have a test file in <code>/Users/username/test/</code> called <code>test.jl</code>, with the following code:</p>
  
  <pre><code>@everywhere println(pwd())
  @everywhere println(Base.source_dir())
  </code></pre>
  
  <p>and we run <code>julia -p 1 test/test.jl</code> we get</p>
  
  <pre><code>/Users/username
      From worker 2:  /Users/username
  /Users/username/test
      From worker 2:  nothing
  </code></pre>
  
  <p>what would be the most robust way to <code>include</code> another file that is also in the <code>test</code> directory?</p>