title: Run python script from terminal with module in different directory
body: <p>So I have the following api architecture</p>
  
  <pre class="lang-py prettyprint-override"><code>API &gt;
         -------- data
                      |_ __init__.py
                      |_ data.py
                      |_ data.csv
         -------- model
                      |_ __init__.py
                      |_ model.py
         -------- modules.py
         -------- app.py
  
  </code></pre>
  
  <p><code>model.py</code> &amp; <code>data.py</code> both use modules from <code>modules.py</code> via <code>from modules import *</code> This works fine when launching everything from PyCharm.<br>
  However when trying to run it with the shell script in the main directory <code>API</code></p>
  
  <pre><code>cd data &amp;&amp; python data.py &amp;&amp; cd ..
  cd model &amp;&amp; python model.py &amp;&amp; cd ..
  
  </code></pre>
  
  <p>I get the error:
  <code>ModuleNotFoundError: No module named 'modules'</code><br>
  How to import correctly modules to run it both on PyCharm and command line?</p>