aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-03-26 11:14:06 +0100
committerGitHub <noreply@github.com>2024-03-26 10:14:06 +0000
commit58f170c97ab0715d7ca4833f7ec17d80f435d627 (patch)
tree9783dbfb5ad31c102567a67a6e3226534b6ad3ed /components/script
parentf8a2eaea4741408c73efc5c0ad467eae96d2e799 (diff)
downloadservo-58f170c97ab0715d7ca4833f7ec17d80f435d627.tar.gz
servo-58f170c97ab0715d7ca4833f7ec17d80f435d627.zip
Update python detection in codegen (#31873)
* Update python detection in codegen * Update build.rs
Diffstat (limited to 'components/script')
-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 d002cdb6982..2bc449dcdef 100644
--- a/components/script/build.rs
+++ b/components/script/build.rs
@@ -67,9 +67,9 @@ impl<'a> phf_shared::PhfHash for Bytes<'a> {
fn find_python() -> String {
env::var("PYTHON3").ok().unwrap_or_else(|| {
let candidates = if cfg!(windows) {
- ["python3.8.exe", "python38.exe", "python.exe"]
+ ["python.exe", "python"]
} else {
- ["python3.8", "python3", "python"]
+ ["python3", "python"]
};
for &name in &candidates {
if Command::new(name)