diff --git a/alembic/env.py b/alembic/env.py index 6e2d66a..16abc88 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -1,10 +1,15 @@ from logging.config import fileConfig +import os +import sys from sqlalchemy import engine_from_config from sqlalchemy import pool from alembic import context +# Add the parent directory to the Python path +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) + # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config