|
|
@ -14,9 +14,9 @@ public record struct PyVersionInfo(int Major, int Minor, int Micro, string Relea |
|
|
|
public class PyRunner : IPyRunner |
|
|
|
public class PyRunner : IPyRunner |
|
|
|
{ |
|
|
|
{ |
|
|
|
private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); |
|
|
|
private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); |
|
|
|
|
|
|
|
|
|
|
|
private static readonly string AppDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); |
|
|
|
// Set by ISettingsManager.TryFindLibrary() |
|
|
|
private static readonly string HomeDir = Path.Combine(AppDataDir, "StabilityMatrix"); |
|
|
|
public static string HomeDir { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
|
|
public static string PythonDir => Path.Combine(HomeDir, "Assets", "Python310"); |
|
|
|
public static string PythonDir => Path.Combine(HomeDir, "Assets", "Python310"); |
|
|
|
public static string PythonDllPath => Path.Combine(PythonDir, "python310.dll"); |
|
|
|
public static string PythonDllPath => Path.Combine(PythonDir, "python310.dll"); |
|
|
|