mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
commit
f90b847cb1
@ -108,7 +108,7 @@ def detect_shell(args: Any) -> str:
|
|||||||
while True:
|
while True:
|
||||||
parent_pid = psutil.Process(current_pid).ppid()
|
parent_pid = psutil.Process(current_pid).ppid()
|
||||||
parent_name = psutil.Process(parent_pid).name()
|
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
|
detected_shell_name = parent_name
|
||||||
conf.DETECTED_SHELL_PATH = psutil.Process(parent_pid).exe()
|
conf.DETECTED_SHELL_PATH = psutil.Process(parent_pid).exe()
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user