Fix async install plugin dependencies for windows (#549)

This commit is contained in:
Wu Clan
2025-03-17 23:39:10 +08:00
committed by GitHub
parent baebdd9870
commit 2be12b4ea4
2 changed files with 12 additions and 44 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ async def install_plugin(file: Annotated[UploadFile, File()]) -> ResponseModel:
members.append(member)
zf.extractall(PLUGIN_DIR, members)
if os.path.exists(os.path.join(full_plugin_path, 'requirements.txt')):
await install_requirements_async(False)
await install_requirements_async()
return response_base.success()