import sys
import os

# Specify the directory where your app is located
sys.path.insert(0, os.path.dirname(__file__))

# Activate the virtual environment
activate_this = os.path.join(os.path.dirname(__file__), 'venv', 'bin', 'activate_this.py')
with open(activate_this) as file_:
    exec(file_.read(), dict(__file__=activate_this))

# Import the application object from your main Flask file
from app import app as application  # Use 'app' since your main file is app.py
