mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Merge branch 'main' into python-3.8
This commit is contained in:
commit
2b01ab606b
13 changed files with 49 additions and 34 deletions
|
@ -373,8 +373,8 @@ pub fn which_python() -> String {
|
|||
if res.is_empty() {
|
||||
println!("python not found");
|
||||
std::process::exit(1);
|
||||
} else if res.contains("pyenv") {
|
||||
println!("cannot use pyenv");
|
||||
} else if res.contains("pyenv") && cfg!(windows) {
|
||||
println!("cannot use pyenv-win"); // because pyenv-win does not support `-c` option
|
||||
std::process::exit(1);
|
||||
}
|
||||
res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue