mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Update python_util.rs
This commit is contained in:
parent
4bc113f7d1
commit
f7d2096d3e
1 changed files with 2 additions and 2 deletions
|
@ -373,8 +373,8 @@ pub fn which_python() -> String {
|
||||||
if res.is_empty() {
|
if res.is_empty() {
|
||||||
println!("python not found");
|
println!("python not found");
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
} else if res.contains("pyenv") {
|
} else if res.contains("pyenv") && cfg!(windows) {
|
||||||
println!("cannot use pyenv");
|
println!("cannot use pyenv-win"); // because pyenv-win does not support `-c` option
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
res
|
res
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue