title: Flask configuration paths
body: <p>So I have this code in my init:</p>
  
  <pre><code>app = Flask(__name__)
  app.config.from_object('config')
  app.config.from_pyfile('app.cfg')
  </code></pre>
  
  <p>My folder structure goes like this:</p>
  
  <pre><code>/config.py 
  /app.cfg
  /app/__init__.py
  </code></pre>
  
  <p>However, this code seems to find my config.py in the root, but it's searching inside my app folder for my app.cfg. How do I make it look for my configuration file in the correct place, without having to put it in my app folder. </p>
  
  <p>Should I be using <code>from object</code> and rename my app.cfg to app.py</p>