From ef35ae9b60122e5cf42be487e3465d06db5fede9 Mon Sep 17 00:00:00 2001 From: Aldrian Harjati Date: Thu, 28 Sep 2023 12:36:44 -0400 Subject: [PATCH] add src to syspath --- alembic.ini | 2 +- db_revisions/env.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alembic.ini b/alembic.ini index adf21b1..d00656c 100644 --- a/alembic.ini +++ b/alembic.ini @@ -12,7 +12,7 @@ script_location = ./db_revisions # sys.path path, will be prepended to sys.path if present. # defaults to the current working directory. -prepend_sys_path = . +prepend_sys_path = ./src:. # timezone to use when rendering the date within the migration file # as well as the filename. diff --git a/db_revisions/env.py b/db_revisions/env.py index 28a7317..66a5fc6 100644 --- a/db_revisions/env.py +++ b/db_revisions/env.py @@ -7,7 +7,7 @@ from sqlalchemy import pool from alembic import context -from src.entities import models +from entities import models # this is the Alembic Config object, which provides # access to the values within the .ini file in use.