esp-idf/tools/export_utils
Frantisek Hrbata 65d18fce4c fix(activate): use exe instead of comm for parent shell detection
Currently, we are using psutil.Process().name(), which includes the
command as entered on the command line. This becomes an issue if the
export script is initiated within another script.

run.sh

    #!/usr/bin/bash
    . ./export.sh

In this case the activate script will see `run.sh` instead of bash.

/proc/<pid>/com vs /proc/<pid>/exe

Use exe(), which contains the full executable path to fix this.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-09-06 15:58:24 +02:00
..
activate_venv.py fix(activate): use exe instead of comm for parent shell detection 2024-09-06 15:58:24 +02:00
console_output.py feat(tools): Added Windows shells support + refactoring 2024-09-05 10:13:04 +02:00
shell_types.py feat(tools): Added Windows shells support + refactoring 2024-09-05 10:13:04 +02:00
utils.py feat(tools): Added Windows shells support + refactoring 2024-09-05 10:13:04 +02:00