30 lines
667 B
C#
Raw Normal View History

2025-01-28 14:58:37 +01:00
namespace CodexPlugin
{
public class CodexExePath
{
private readonly string[] paths = [
Path.Combine("d:", "Dev", "nim-codex", "build", "codex.exe"),
Path.Combine("c:", "Projects", "nim-codex", "build", "codex.exe")
];
private string selectedPath = string.Empty;
public CodexExePath()
{
foreach (var p in paths)
{
if (File.Exists(p))
{
selectedPath = p;
return;
}
}
}
2025-01-28 14:58:37 +01:00
public string Get()
{
return selectedPath;
2025-01-28 14:58:37 +01:00
}
}
}