Use PYTHON2 variable for script's codegen.

This commit is contained in:
Josh Matthews 2020-05-04 11:52:22 -04:00 committed by GitHub
parent 73d0ea6d08
commit 39fff93bef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ impl<'a> phf_shared::PhfHash for Bytes<'a> {
} }
fn find_python() -> String { fn find_python() -> String {
env::var("PYTHON").ok().unwrap_or_else(|| { env::var("PYTHON2").ok().unwrap_or_else(|| {
let candidates = if cfg!(windows) { let candidates = if cfg!(windows) {
["python2.7.exe", "python27.exe", "python.exe"] ["python2.7.exe", "python27.exe", "python.exe"]
} else { } else {