Skip to content

Commit

Permalink
fix(install): use python instead of python3 so that venv does not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
malte-behrendt committed Nov 13, 2024
1 parent b53fb5d commit ac726ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn download_prebuilt(

#[plugin_fn]
pub fn unpack_archive(Json(input): Json<UnpackArchiveInput>) -> FnResult<()> {
let mut result = exec_command!("which", ["python3"]);
let mut result = exec_command!("which", ["python"]);

if result.exit_code != 0 {
return Err(plugin_err!(
Expand All @@ -53,7 +53,7 @@ pub fn unpack_archive(Json(input): Json<UnpackArchiveInput>) -> 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()
}
Expand Down

0 comments on commit ac726ab

Please sign in to comment.