title: Importing modules from adjacent folders in Python
body: <p>I wanted to ask if there is a way to import modules/functions from a folder in a project that is adjacent to another folder.</p>
  
  <p>For example lets say I have two files:</p>
  
  <pre class="lang-py prettyprint-override"><code>project/src/training.py
  project/lib/functions.py
  </code></pre>
  
  <p>Now both these folders have the <code>__init__.py</code> file in them. If I wanted to import <code>functions.py</code> into <code>training.py</code>, it doesn't seem to detect. I'm trying to use <code>from lib.functions import *</code> .I know this works from the upper level of the folder structure, where I can call both files from a script, but is there a way to do it files in above/sideways folders?</p>