From e4b1ffd676e3afe07769ec7a44c8ce7176c20401 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Fri, 11 Mar 2022 10:56:11 +0100 Subject: [PATCH] Tools: Use default value in the Python detections scripts Closes https://github.com/espressif/esp-idf/issues/8549 --- tools/detect_python.fish | 2 ++ tools/detect_python.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/detect_python.fish b/tools/detect_python.fish index 17ac4daee7..bb72445c1d 100644 --- a/tools/detect_python.fish +++ b/tools/detect_python.fish @@ -5,6 +5,8 @@ set OLDEST_PYTHON_SUPPORTED_MAJOR 3 set OLDEST_PYTHON_SUPPORTED_MINOR 7 +set -x ESP_PYTHON python + for p_cmd in python3 python python3.7 python3.8 python3.9 python3.10 python3.11 python3.12; $p_cmd --version >/dev/null 2>&1; or continue echo "Checking \"$p_cmd\" ..." diff --git a/tools/detect_python.sh b/tools/detect_python.sh index 60462a1cb7..ffedd6065d 100644 --- a/tools/detect_python.sh +++ b/tools/detect_python.sh @@ -10,6 +10,8 @@ OLDEST_PYTHON_SUPPORTED_MAJOR=3 OLDEST_PYTHON_SUPPORTED_MINOR=7 +ESP_PYTHON=python + for p_cmd in python3 python python3.7 python3.8 python3.9 python3.10 python3.11 python3.12; do $p_cmd --version >/dev/null 2>&1 || continue echo "Checking \"$p_cmd\" ..."