This commit is contained in:
Archi 2023-04-20 22:25:38 +02:00
parent 55b8c8f0d4
commit b9fd3d0433
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -110,7 +110,12 @@ internal sealed class Startup {
continue;
}
string physicalPath = Path.IsPathRooted(plugin.PhysicalPath) ? plugin.PhysicalPath : Path.Combine(Path.GetDirectoryName(plugin.GetType().Assembly.Location)!, plugin.PhysicalPath);
string physicalPath = plugin.PhysicalPath;
if (!Path.IsPathRooted(physicalPath)) {
// Relative path
physicalPath = Path.Combine(Path.GetDirectoryName(plugin.GetType().Assembly.Location)!, plugin.PhysicalPath);
}
if (!Directory.Exists(physicalPath)) {
continue;