While submit job with pyspark, how to access static files upload with --files argument? : <p>for example, i have a folder:</p>

<pre><code>/
  - test.py
  - test.yml
</code></pre>

<p>and the job is submited to spark cluster with:</p>

<p><code>gcloud beta dataproc jobs submit pyspark --files=test.yml "test.py"</code></p>

<p>in the <code>test.py</code>, I want to access the static file I uploaded.</p>

<pre><code>with open('test.yml') as test_file:
    logging.info(test_file.read())
</code></pre>

<p>but got the following exception:</p>

<pre><code>IOError: [Errno 2] No such file or directory: 'test.yml'
</code></pre>

<p>How to access the file I uploaded?</p>
