fix supervisor path

This commit is contained in:
CommonLoon102 2020-01-25 01:55:46 +01:00
parent df689c5d68
commit b1ccde13bd

View File

@ -28,7 +28,7 @@ namespace WebInterface
string supervisorPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), supervisor); string supervisorPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), supervisor);
if (!File.Exists(supervisorPath)) if (!File.Exists(supervisorPath))
throw new Exception($"Couldn't find {supervisor} at {supervisorPath}"); throw new Exception($"Couldn't find {supervisor} at {supervisorPath}");
Process.Start(supervisor); Process.Start(supervisorPath);
} }
public IConfiguration Configuration { get; } public IConfiguration Configuration { get; }