mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/fix_shell_detection' into 'master'
fix(activate): use exe instead of comm for parent shell detection Closes IDF-11080 See merge request espressif/esp-idf!33378
This commit is contained in:
commit
d5341bd455
@ -107,7 +107,7 @@ def detect_shell(args: Any) -> str:
|
||||
detected_shell_name = ''
|
||||
while True:
|
||||
parent_pid = psutil.Process(current_pid).ppid()
|
||||
parent_name = psutil.Process(parent_pid).name()
|
||||
parent_name = os.path.basename(psutil.Process(parent_pid).exe())
|
||||
if not parent_name.lower().startswith('python'):
|
||||
detected_shell_name = parent_name
|
||||
conf.DETECTED_SHELL_PATH = psutil.Process(parent_pid).exe()
|
||||
|
Loading…
Reference in New Issue
Block a user