mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 04:44:44 +00:00
Update python_util.rs
This commit is contained in:
parent
ad0aaf49b9
commit
02a6c0279b
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ pub fn exec_py(code: &str) {
|
||||||
.expect("cannot execute python");
|
.expect("cannot execute python");
|
||||||
} else {
|
} else {
|
||||||
let python_command = format!("{} -c \"{}\"", which_python(), code);
|
let python_command = format!("{} -c \"{}\"", which_python(), code);
|
||||||
Command::new(python_command)
|
Command::new("sh")
|
||||||
|
.arg("-c")
|
||||||
|
.arg(python_command)
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("cannot execute python");
|
.expect("cannot execute python");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue