Commit ca22a79fda3c0f3c0e667b84f085f9154646e03e

Authored by Antoine Goutenoir
1 parent 5aa38703
Exists in master

Review WSGI-like script from hell.

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
web/wsgi.py
1 1 import os
2 2 import sys
3 3  
4   -ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
  4 +PROJECT_ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
5 5  
6   -sys.path.append(ROOT_DIR)
  6 +sys.path.append(PROJECT_ROOT_DIR)
7 7  
  8 +# Only now can we import locals
8 9 from flaskr import create_app
9 10  
10 11 app = create_app('flaskr.settings.ProductionConfig')
... ...