Fix Alembic migration error by adding project root to Python path

This commit is contained in:
Automated Action 2025-05-23 09:53:28 +00:00
parent 62d74d3a5b
commit e6dae202d1

View File

@ -1,4 +1,9 @@
from logging.config import fileConfig
import sys
from pathlib import Path
# Add the project root directory to Python's path
sys.path.insert(0, str(Path(__file__).parents[1]))
from sqlalchemy import engine_from_config
from sqlalchemy import pool