GoogleAppEngine access app.yaml contents inside the app
<p>I have a python GAE app. Inside my <code>webapp2</code> code I would like to access some of the properties defined in the <code>app.yaml</code>.</p>

<p>I know it's possible to export environment variables and access them inside my python app using <code>os.environ</code>, but is there a way to directly access <code>app.yaml</code> contents without exporting environment variables?</p>

<p>You could simply do:</p>

<pre><code>import yaml
with open('app.yaml') as fd:
    data = yaml.load(fd)
    logging.error('data=%s' % data)
</code></pre>

python google-app-engine