From a6a4f8a705e64aca71f4708dfe283535a814d862 Mon Sep 17 00:00:00 2001 From: Marek Fiala Date: Tue, 15 Jul 2025 14:33:46 +0200 Subject: [PATCH] feat(tools): Normalized detected shell names to lowercase on Windows Closes https://github.com/espressif/esp-idf/issues/16868 --- tools/export_utils/activate_venv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/export_utils/activate_venv.py b/tools/export_utils/activate_venv.py index 20af86e151..56be2ea5de 100644 --- a/tools/export_utils/activate_venv.py +++ b/tools/export_utils/activate_venv.py @@ -134,7 +134,8 @@ def detect_shell(args: Any) -> str: break current_pid = parent_pid - return detected_shell_name + # On Windows shell names are case-insensitive, but ESP-IDF defines them in lowercase + return detected_shell_name.lower() if sys.platform == 'win32' else detected_shell_name @status_message('Detecting outdated tools in system', rv_on_ok=True)