fix(backfill): add sys.path insertion for module resolution
Build and Push Reader API Image / docker (push) Successful in 11s
Build and Push Reader API Image / docker (push) Successful in 11s
This commit is contained in:
@@ -4,10 +4,13 @@ import argparse
|
|||||||
import asyncio
|
import asyncio
|
||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from bson import ObjectId
|
from bson import ObjectId
|
||||||
from sqlalchemy import text
|
from sqlalchemy import text
|
||||||
|
|
||||||
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
||||||
|
|
||||||
from app.config import settings
|
from app.config import settings
|
||||||
from app.database import SessionLocal, mongo_db
|
from app.database import SessionLocal, mongo_db
|
||||||
from app.storage import storage
|
from app.storage import storage
|
||||||
|
|||||||
Reference in New Issue
Block a user