/ ProjectPlugins / CodexPlugin / CodexExePath.cs
CodexExePath.cs
 1  namespace CodexPlugin
 2  {
 3      public class CodexExePath
 4      {
 5          private readonly string[] paths = [
 6              Path.Combine("d:", "Dev", "nim-codex", "build", "codex.exe"),
 7              Path.Combine("c:", "Projects", "nim-codex", "build", "codex.exe")
 8          ];
 9  
10          private string selectedPath = string.Empty;
11  
12          public CodexExePath()
13          {
14              foreach (var p in paths)
15              {
16                  if (File.Exists(p))
17                  {
18                      selectedPath = p;
19                      return;
20                  }
21              }
22          }
23  
24          public string Get()
25          {
26              return selectedPath;
27          }
28      }
29  }