45 lines
946 B
C#
45 lines
946 B
C#
using CaeGlobals;
|
|
using System;
|
|
|
|
#pragma warning disable IDE0130
|
|
namespace CPSO
|
|
{
|
|
[Serializable]
|
|
public class PythonSettings: ISettings
|
|
{
|
|
private string _condaPath;
|
|
private string _condaEnvironment;
|
|
|
|
public string CondaPath
|
|
{
|
|
get => Tools.GetGlobalPath(_condaPath);
|
|
set
|
|
{
|
|
var path = Tools.GetGlobalPath(value);
|
|
_condaPath = Tools.GetLocalPath(path);
|
|
}
|
|
}
|
|
|
|
// ReSharper disable once ConvertToAutoProperty
|
|
public string CondaEnvironment
|
|
{
|
|
get => _condaEnvironment;
|
|
set => _condaEnvironment = value;
|
|
}
|
|
|
|
public PythonSettings()
|
|
{
|
|
Reset();
|
|
}
|
|
|
|
public void CheckValues()
|
|
{
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
_condaPath = null;
|
|
_condaEnvironment = null;
|
|
}
|
|
}
|
|
} |