Save Python/Node paths as absolute, not relative

Removed logic that converted selected Python and Node executable
paths to relative if within the program directory. Now, the
selected file paths are stored as absolute paths without
conversion. This simplifies path handling and improves clarity.
This commit is contained in:
Jack251970 2026-01-24 15:57:52 +08:00
parent ab5a0b493d
commit c59249d53a

View file

@ -377,8 +377,7 @@ public partial class SettingsPaneGeneralViewModel : BaseModel
);
if (!string.IsNullOrEmpty(selectedFile))
// Convert to relative path if within ProgramDirectory for portability
Settings.PluginSettings.PythonExecutablePath = Constant.ConvertToRelativePathIfPossible(selectedFile);
Settings.PluginSettings.PythonExecutablePath = selectedFile;
}
[RelayCommand]
@ -390,8 +389,7 @@ public partial class SettingsPaneGeneralViewModel : BaseModel
);
if (!string.IsNullOrEmpty(selectedFile))
// Convert to relative path if within ProgramDirectory for portability
Settings.PluginSettings.NodeExecutablePath = Constant.ConvertToRelativePathIfPossible(selectedFile);
Settings.PluginSettings.NodeExecutablePath = selectedFile;
}
[RelayCommand]