"""Passenger WSGI entry point for Spaceship Python Hosting.

Phusion Passenger imports this file and looks for a WSGI callable named
`application`. It imports the Flask app from `app.py`.

Local development is unaffected: run `python app.py` as before.
"""
import sys
from os.path import dirname, abspath

# Make the application root importable so `app` and `core` resolve correctly.
sys.path.insert(0, dirname(abspath(__file__)))

from app import app as application  # noqa: E402,F401
