From ca22a79fda3c0f3c0e667b84f085f9154646e03e Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Thu, 24 Oct 2019 05:54:15 +0200 Subject: [PATCH] Review WSGI-like script from hell. --- web/wsgi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/wsgi.py b/web/wsgi.py index 99a9688..3bafbfd 100644 --- a/web/wsgi.py +++ b/web/wsgi.py @@ -1,10 +1,11 @@ import os import sys -ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) +PROJECT_ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) -sys.path.append(ROOT_DIR) +sys.path.append(PROJECT_ROOT_DIR) +# Only now can we import locals from flaskr import create_app app = create_app('flaskr.settings.ProductionConfig') -- libgit2 0.21.2