mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 21:43:08 +00:00
30 lines
667 B
C#
30 lines
667 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
public string Get()
|
|
{
|
|
return selectedPath;
|
|
}
|
|
}
|
|
}
|