title: Importing python modules from a subfolder
body: <p>I would like to import modules from within the following folder structure by referencing the sub-module <code>app</code>.</p>
  <pre><code>├── src
  │   ├── __init__.py
  │   └── app
  │       ├── __init__.py
  │       ├── getters
  │       │   ├── company_1.py
  │       │   └── company_2.py
  │       ├── parsers
  │       │   ├── company_1.py
  │       │   └── company_2.py
  │       └── writers
  │           ├── company_1.py
  │           └── company_2.py
  </code></pre>
  <p>Here is an example of what I want to do:</p>
  <pre><code># src/app/writers/company_1.py
  
  import app.parsers.company_1 as parser_1
  
  
  def write_data(event, context):
      ...
  </code></pre>
  <p>but I get the error <code>ModuleNotFoundError: No module named 'app'</code>. I don't understand why this shouldn't work.</p>
  <p><strong>NOTE</strong></p>
  <p>Why am I including the seemingly redundant sub-folder <code>app</code>? The side story here is that the functions <code>writers/company_*.py</code> will be implemented as Lambda functions on AWS, and in order to get all the necessary dependencies, I need to upload the contents of the src folder to AWS but need to have a top-level folder with a known name so that I can use it for absolute imports.  Without <code>app</code> the contents of src are uploaded to a folder with an autogenerated name which I cannot reference.</p>
  <p>I first tried relative imports, but received an <code>attempted relative import with no known parent package</code> error, so now I am going for absolute imports, inspo from <a href="https://gist.github.com/gene1wood/06a64ba80cf3fe886053f0ca6d375bc0" rel="nofollow noreferrer">here</a>.</p>