mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-25 18:49:25 +00:00
30 lines
703 B
C#
30 lines
703 B
C#
namespace StoragePlugin
|
|
{
|
|
public class LogosStorageExePath
|
|
{
|
|
private readonly string[] paths = [
|
|
Path.Combine("d:", "Dev", "logos-storage-nim", "build", "storage.exe"),
|
|
Path.Combine("c:", "Projects", "logos-storage-nim", "build", "storage.exe")
|
|
];
|
|
|
|
private string selectedPath = string.Empty;
|
|
|
|
public LogosStorageExePath()
|
|
{
|
|
foreach (var p in paths)
|
|
{
|
|
if (File.Exists(p))
|
|
{
|
|
selectedPath = p;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
public string Get()
|
|
{
|
|
return selectedPath;
|
|
}
|
|
}
|
|
}
|