mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 05:31:11 +00:00
Deny pyenv
This commit is contained in:
parent
01451ee821
commit
22cec7c6cc
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ pub fn which_python() -> String {
|
|||
let res = String::from_utf8(out.stdout).unwrap();
|
||||
let res = res.split('\n').next().unwrap_or("").replace('\r', "");
|
||||
if res.is_empty() {
|
||||
panic!("python not found");
|
||||
println!("python not found");
|
||||
std::process::exit(1);
|
||||
} else if res.contains("pyenv") {
|
||||
println!("cannot use pyenv");
|
||||
std::process::exit(1);
|
||||
}
|
||||
res
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue