fix plugin downloading on separated runtime directory

This commit is contained in:
zznty
2022-05-08 12:24:38 +07:00
parent d52348149a
commit 1afb126cb5

View File

@@ -60,7 +60,7 @@ namespace Torch.API.WebAPI
{ {
try try
{ {
path ??= Path.Combine(Directory.GetCurrentDirectory(), "Plugins", $"{item.Name}.zip"); path ??= Path.Combine(AppContext.BaseDirectory, "Plugins", $"{item.Name}.zip");
if (item.Versions.Length == 0) if (item.Versions.Length == 0)
{ {