16 lines
250 B
Python
16 lines
250 B
Python
import os
|
|
import sys
|
|
|
|
|
|
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
if PROJECT_ROOT not in sys.path:
|
|
sys.path.insert(0, PROJECT_ROOT)
|
|
|
|
os.chdir(PROJECT_ROOT)
|
|
|
|
from app import create_app
|
|
|
|
|
|
application = create_app()
|
|
app = application |