15 lines
435 B
Python
15 lines
435 B
Python
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
|
|
# Add the app directory to the Python path
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'app'))
|
|
|
|
if __name__ == "__main__":
|
|
try:
|
|
from app.main import app
|
|
print("Application initialized successfully")
|
|
print("Run with: uvicorn app.main:app --reload")
|
|
except Exception as e:
|
|
print(f"Error initializing application: {e}")
|
|
sys.exit(1) |