Skip to content

Commit f90b847

Browse files
author
Marek Fiala
committed
Merge branch 'fix/correct_shell_detection' into 'master'
fix(tools): Corrected detect_shell See merge request espressif/esp-idf!33365
2 parents c605620 + 24ae042 commit f90b847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/export_utils/activate_venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def detect_shell(args: Any) -> str:
108108
while True:
109109
parent_pid = psutil.Process(current_pid).ppid()
110110
parent_name = psutil.Process(parent_pid).name()
111-
if not parent_name.startswith('python'):
111+
if not parent_name.lower().startswith('python'):
112112
detected_shell_name = parent_name
113113
conf.DETECTED_SHELL_PATH = psutil.Process(parent_pid).exe()
114114
break

0 commit comments

Comments
 (0)