Unable to load instance config in app organized as a package
<p>In <code>__init__.py</code> I'm trying to load the config from a Python file relative to the instance folder.  That's throwing an error <code>Unable to load configuration file (No such file or directory): '/home/ais-flask/ais/instance/config.py'</code>, which is wrong, because the instance folder should be next to the package, not in it, and mine is.  I install my package in develop mode with <code>setup.py develop</code>.  I run the app with <code>python __init__.py</code>.  Why isn't this working?</p>

<pre class="lang-none prettyprint-override"><code>ais-flask/
    ais/
        __init__.py
    instance/
        config.py
    setup.py
</code></pre>



<pre><code>from flask import Flask

app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile('config.py')
</code></pre>