title: cfg file not resolved when trying to import python library from zip included to a path
body: <p>I use Spark 2.4.0 + K8s cluster deployment mode + python 3.5.</p>
  
  <p>I pack all libraries into zip archive and send it to AWS S3, then attach to context</p>
  
  <pre><code>sc = pyspark.SparkContext(appName=args.job_name, environment=environment)
  
  sc.addPyFile('s3a://.../libs.zip')
  sc.addPyFile('s3a://.../code.zip')
  </code></pre>
  
  <p>Import works, I can import any package. But if I import package, that reads some files from package-related folders - I get error:</p>
  
  <p><code>NotADirectoryError: [Errno 20] Not a directory: '/var/data/spark-ce45d34b-8d2f-4fd0-b3d6-d53ecede8ef1/spark-6ce9d14f-3d90-4c3c-ba2d-9dd6ddf32457/userFiles-08e6e9ec-03fa-447d-930f-bf1bd520f55a/libs.zip/airflow/config_templates/default_airflow.cfg'</code></p>
  
  <p>How could I solve it?</p>
  
  <p>PS. Use <code>sc.addFile('s3a:/..')</code> and unzipping not works because spark is running in cluster mode.</p>
  
  <p>UPDATE:</p>
  
  <p>I've temporary solved this by installing all packages I need to the docker container I'm using for spark workers.</p>