aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/build.rs')
-rw-r--r--components/script/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/build.rs b/components/script/build.rs
index d8d65b098db..6a9b4866759 100644
--- a/components/script/build.rs
+++ b/components/script/build.rs
@@ -65,7 +65,7 @@ impl<'a> phf_shared::PhfHash for Bytes<'a> {
}
fn find_python() -> String {
- env::var("PYTHON").ok().unwrap_or_else(|| {
+ env::var("PYTHON2").ok().unwrap_or_else(|| {
let candidates = if cfg!(windows) {
["python2.7.exe", "python27.exe", "python.exe"]
} else {
@@ -82,7 +82,7 @@ fn find_python() -> String {
}
}
panic!(
- "Can't find python (tried {})! Try fixing PATH or setting the PYTHON env var",
+ "Can't find python (tried {})! Try fixing PATH or setting the PYTHON2 env var",
candidates.join(", ")
)
})