mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
fix(tools): Corrected detect_shell
When comparing process name with python, lowercase the process name in condition.
This commit is contained in:
parent
386420067a
commit
24ae042bba
@ -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