From 142fa3852874d47898229a5eb164d7e9f3225e62 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 9546d941dfd6..a465266a1794 100644 --- a/tools/export_utils/activate_venv.py +++ b/tools/export_utils/activate_venv.py @@ -127,7 +127,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)