Merge branch 'fix/correct_shell_detection' into 'master'

fix(tools): Corrected detect_shell

See merge request espressif/esp-idf!33365
This commit is contained in:
Marek Fiala 2024-09-06 19:22:15 +08:00
commit f90b847cb1

View File

@ -108,7 +108,7 @@ def detect_shell(args: Any) -> str:
while True:
parent_pid = psutil.Process(current_pid).ppid()
parent_name = psutil.Process(parent_pid).name()
if not parent_name.startswith('python'):
if not parent_name.lower().startswith('python'):
detected_shell_name = parent_name
conf.DETECTED_SHELL_PATH = psutil.Process(parent_pid).exe()
break