In a flask application I wrote, I make use of an external library which can be configured using environment variables. Note: I wrote this external library myself. So I c
Note that the WSGI environment is passed upon each request to the application in the environ argument of the application object. This environment is totally unrelated to the process environment which is kept in os.environ. The SetEnv directive has no effect on os.environ and there is no way through Apache configuration directives to affect what is in the process environment.
So you have to do something else other than getenviron or os.environ['PWD'] to get the MY_PATH from apache.
Flask adds the wsgi environ to the request, not app.environ, it is done by the underlaying werkzeug. So on each request to the application, apache will add the MYAPP_CONF key and youll access it wherever you can access request it seems as, request.environ.get('MYAPP_CONFIG') for example.