Fix alembic migration by adding project root to Python path
generated with BackendIM... (backend.im)
This commit is contained in:
parent
e1ed70e281
commit
b0824aece1
@ -1,4 +1,9 @@
|
||||
from logging.config import fileConfig
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Add the parent directory to the path so imports work correctly
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
from sqlalchemy import engine_from_config
|
||||
from sqlalchemy import pool
|
||||
|
Loading…
x
Reference in New Issue
Block a user