title: how to use absolute paths in flask app?
body: <p>I'm attempting to learn python and can't seem to understand how python handles imports. I'm experimenting with a Flask app and i can get it to run with relative urls, but i want to use absolute urls as an exercise to learn about imports. </p>
  
  <p>I've set my <code>PYTHONPATH</code> to my <code>app</code> directory inside my project but that doesn't seem to do anything.</p>
  
  <p>Here's my setup. I've got <code>app/__init.py</code> on the left and <code>app/mod_users/controllers.py</code> on the right. My <code>run.py</code> is a file with one line, <code>from app import app</code>.</p>
  
  <p>As you can see on line 17, it doesn't like the absolute import. Could this be because my app variable is named <code>app</code> and so is the import path? </p>
  
  <p><a href="https://i.stack.imgur.com/iCaxy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iCaxy.png" alt="enter image description here"></a></p>