mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 12:51:10 +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");
|
||||
} else {
|
||||
let python_command = format!("{} -c \"{}\"", which_python(), code);
|
||||
Command::new(python_command)
|
||||
Command::new("sh")
|
||||
.arg("-c")
|
||||
.arg(python_command)
|
||||
.spawn()
|
||||
.expect("cannot execute python");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue