This commit is contained in:
jxxghp
2023-06-07 15:24:33 +08:00
parent c22f953892
commit 696bffc41f
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,12 @@
import sys
from pathlib import Path
import uvicorn as uvicorn
from fastapi import FastAPI
# 将项目根目录添加到模块搜索路径
sys.path.append(str(Path(__file__).parent.absolute()))
from app.api.apiv1 import api_router
from app.core import settings, ModuleManager, PluginManager
from app.db.init import init_db, update_db