fix: add script_dir() method to PythonExecutor

This commit is contained in:
Accusys
2026-06-26 13:46:23 +08:00
parent 67caf09732
commit 6f1a560d06

View File

@@ -192,6 +192,11 @@ impl PythonExecutor {
.join(",")
}
/// Get the scripts directory path
pub fn script_dir(&self) -> &std::path::PathBuf {
&self.scripts_dir
}
/// Verify a script's SHA256 against the checksums manifest before execution.
pub fn verify_script_integrity(&self, script_name: &str) -> Result<()> {
let script_path = self.scripts_dir.join(script_name);