From 5307b5dc12c25a274896e33c0a1bb4d57b8b32bc Mon Sep 17 00:00:00 2001 From: CarlosCordoba96 Date: Mon, 12 Oct 2020 18:37:40 +0200 Subject: [PATCH] Fix the import error when is executed out of the poetry shell --- migrations/env.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/env.py b/migrations/env.py index c92e865..76a8972 100644 --- a/migrations/env.py +++ b/migrations/env.py @@ -4,7 +4,9 @@ from sqlalchemy import pool from alembic import context - +import sys +import os +sys.path.append(os.getcwd()) # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config