From ac726ab356d69e58b620272f20debe7a584e8862 Mon Sep 17 00:00:00 2001 From: "M.Behrendt" Date: Wed, 13 Nov 2024 15:50:17 +0100 Subject: [PATCH] fix(install): use python instead of python3 so that venv does not fail --- src/proto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto.rs b/src/proto.rs index 4e51eba..be2effc 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -36,7 +36,7 @@ pub fn download_prebuilt( #[plugin_fn] pub fn unpack_archive(Json(input): Json) -> FnResult<()> { - let mut result = exec_command!("which", ["python3"]); + let mut result = exec_command!("which", ["python"]); if result.exit_code != 0 { return Err(plugin_err!( @@ -53,7 +53,7 @@ pub fn unpack_archive(Json(input): Json) -> FnResult<()> { result = exec_command!( input, ExecCommandInput { - command: "python3".into(), + command: "python".into(), args: vec!["-m".into(), "venv".into(), output_path_host_str.clone()], ..ExecCommandInput::default() }