title: How to access other Python files passed using spark-submit?
body: <p>I have this <code>codes.zip</code> that are being passed to spark-submit</p>
  <pre><code>codes.zip
  |-- src/
  |  |-- conf/
  |  |  |-- conf.yml
  |  |-- main.py
  </code></pre>
  <p>In my <code>main.py</code>, I want to read the <code>conf.yml</code> but I don't get how paths inside a spark driver/executor work</p>
  <p><code>main.py</code> should look like this:</p>
  <pre><code>import yaml
  
  with open(&quot;conf/conf.yml&quot;, &quot;r&quot;) as f:
      config = yaml.full_load(f)
  </code></pre>
  <p>However, this is failing because the path is now different when passed to the Spark driver/executor I assume</p>