mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use PYTHON2 variable for script's codegen.
This commit is contained in:
parent
73d0ea6d08
commit
39fff93bef
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue