Skip to content

Commit

Permalink
fix(linux): do't separate arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
GreasySlug committed Nov 13, 2024
1 parent 1bfae02 commit 8d570ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/erg_common/python_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,7 @@ pub fn _opt_which_python() -> Result<String, String> {
.arg("python")
.output()
} else {
Command::new("sh")
.arg("-c")
.arg("which")
.arg("python3")
.output()
Command::new("sh").arg("-c").arg("which python3").output()
};
let Ok(out) = out else {
return Err(format!("{}: python not found", fn_name_full!()));
Expand Down

0 comments on commit 8d570ee

Please sign in to comment.