#!/usr/bin/env python3
"""
Legacy entry point - redirects to the new modular structure
This file is kept for backward compatibility
"""

import os
import sys

# Add the current directory to Python path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from app import create_app

# Get configuration from environment variable
config_name = os.environ.get('FLASK_CONFIG', 'default')

# Create the Flask application
app = create_app(config_name)

if __name__ == '__main__':
    # Run the application
    app.run(
        host=app.config['HOST'],
        port=app.config['PORT'],
        debug=app.config['DEBUG']
    ) 