from __future__ import annotations import os import sys # Add the parent directory to Python path current_dir = os.path.dirname(os.path.abspath(__file__)) parent_dir = os.path.dirname(current_dir) sys.path.insert(0, parent_dir) # Run startup setup try: from startup import setup_environment setup_environment() print("✅ Environment setup completed") except Exception as e: print(f"⚠️ Startup setup warning: {e}") from .app import app as application # WSGI entry point # This file allows running with a production server like gunicorn/waitress: # gunicorn -w 1 -b 0.0.0.0:7860 cve_factchecker.wsgi:application