[odrs-web] trivial: Set the environ before importing



commit 69b6850177ac0ac9930bced1b2492810b6a9bc80
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 26 15:06:32 2016 +0100

    trivial: Set the environ before importing

 odrs.wsgi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/odrs.wsgi b/odrs.wsgi
index 84e4b3f..c9de12a 100644
--- a/odrs.wsgi
+++ b/odrs.wsgi
@@ -8,7 +8,6 @@ import sys
 import os
 
 sys.path.insert(0, os.path.join(os.environ['HOME'], 'html'))
-from flaskapp import app as _application
 
 def application(environ, start_response):
     for key in ['MYSQL_DB_HOST',
@@ -16,4 +15,5 @@ def application(environ, start_response):
                 'MYSQL_DB_PASSWORD',
                 'ODRS_REVIEWS_SECRET']:
         os.environ[key] = environ[key]
+    from flaskapp import app as _application
     return _application(environ, start_response)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]