import os import sys # Ensure required file exists if not os.path.exists('route_optimizer.py'): print("Error: route_optimizer.py file not found!") sys.exit(1) # Import only the Flask app instance (Gunicorn will use this) from app import app