feat: wire native leaudit upload flow
This commit is contained in:
@@ -20,10 +20,13 @@ if str(_PROJECT_ROOT) not in sys.path:
|
||||
# fastapi_modules 目录加入路径(使 importlib 能找到各模块)
|
||||
_FASTMOD = _PROJECT_ROOT / "fastapi_modules"
|
||||
_FASTMOD_LEAUDIT = _FASTMOD / "fastapi_leaudit"
|
||||
_NATIVE_LEAUDIT_SRC = _PROJECT_ROOT.parent / "leaudit" / "src"
|
||||
if str(_FASTMOD) not in sys.path:
|
||||
sys.path.insert(0, str(_FASTMOD))
|
||||
if str(_FASTMOD_LEAUDIT) not in sys.path:
|
||||
sys.path.insert(0, str(_FASTMOD_LEAUDIT))
|
||||
if _NATIVE_LEAUDIT_SRC.exists() and str(_NATIVE_LEAUDIT_SRC) not in sys.path:
|
||||
sys.path.insert(0, str(_NATIVE_LEAUDIT_SRC))
|
||||
|
||||
|
||||
def create_app() -> FastAPI:
|
||||
|
||||
Reference in New Issue
Block a user