Files
wg_cpso/CPSO/Settings/PythonSettings.cs

45 lines
946 B
C#
Raw Normal View History

2026-03-25 18:20:24 +08:00
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;
}
}
}