# passenger_wsgi.py — نقطة التشغيل في cPanel (Setup Python App)
import os
import sys

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from a2wsgi import ASGIMiddleware  # بيحوّل FastAPI (ASGI) لـ WSGI اللي Passenger بيفهمه
from tasks_app import app as asgi_app

application = ASGIMiddleware(asgi_app)
