Fix Alembic migration error by adding project root to Python path
This commit is contained in:
parent
62d74d3a5b
commit
e6dae202d1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user