esp-idf/tools
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
..
ble feat: add requirements.ttfw.txt 2022-08-01 15:52:21 +08:00
catch Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
ci feat(tools): Add backup option to use legacy export script 2024-09-05 10:13:05 +02:00
cmake Merge branch 'bugfix/reproducible_builds_improvements' into 'master' 2024-08-16 19:02:40 +08:00
docker feat(docker): Switch to Ubuntu 24.04 LTS in the ESP-IDF docker image 2024-05-03 09:38:45 +02:00
esp_app_trace fix: Replace deprecated flushregs alias with full gdb command 2023-07-13 09:26:47 +02:00
esp_prov fix(tools/esp_prov): Fix incorrect input decoding when using console transport 2024-06-21 14:07:20 +05:30
export_utils fix(activate): use exe instead of comm for parent shell detection 2024-09-06 15:58:24 +02:00
gen_soc_caps_kconfig feat(soc_cap_kconfig): support to search recursively 2024-03-01 10:17:17 +08:00
idf_py_actions Merge branch 'fix/keep-got-sections-for-riscv' into 'master' 2024-09-06 19:21:06 +08:00
kconfig_new feat(tools/kconfig): add initial and current versions of IDF to kconfig 2023-07-10 17:01:51 +02:00
ldgen fix(ldgen): fix linker script generation from a single-entry fragment file 2024-08-23 17:25:19 +08:00
legacy_exports feat(tools): Add backup option to use legacy export script 2024-09-05 10:13:05 +02:00
mass_mfg fix(tools): python3.12 support 2024-09-04 18:00:56 +02:00
mocks feat(bootloader_support): added bootloader_support mocks 2024-08-06 11:03:55 +02:00
requirements feat: add python script to activate ESP-IDF environment 2024-09-05 10:13:03 +02:00
templates/sample_component
test_apps Merge branch 'feature/esp32c5_coredump' into 'master' 2024-09-04 20:08:48 +08:00
test_build_system feat(tools): Allow test_spaces_bundle4 to fail on Win 2024-08-21 14:37:06 +02:00
test_idf_py docs(secure_boot_v2): Mention idf.py and openssl commands to generate and verify signatures 2024-08-27 15:44:05 +05:30
test_idf_size feat: add diff option support to idf.py size commands 2024-05-24 15:19:37 +08:00
test_idf_tools ci(tools): Fix IDF_MIRROR_PREFIX_MAP for including all tools from local 2024-04-26 15:17:39 +02:00
test_mkdfu fix(ci): Remove unittest-xml-reporting dependency from host tests 2023-11-30 14:03:41 +01:00
unit-test-app fix: properly resolve component dependencies 2024-05-30 22:01:55 +08:00
activate.py feat(tools): Added Windows shells support + refactoring 2024-09-05 10:13:04 +02:00
check_python_dependencies.py fix(tools): catch more general errors in python dependency checker 2024-02-15 10:47:02 +01:00
check_term.py check_term: allow alacritty term 2022-05-19 11:10:59 +08:00
detect_python.fish feat: Drop Python 3.7 support 2023-08-08 08:37:29 +02:00
detect_python.sh feat: Drop Python 3.7 support 2023-08-08 08:37:29 +02:00
eclipse-code-style.xml
format.sh ci: add astyle pre-commit check 2023-09-27 08:43:45 +02:00
gdb_panic_server.py feat(tools): remove gdb_panic_server and use just a wrapper for script 2023-08-24 15:20:29 +02:00
gen_esp_err_to_name.py fix(err_to_name): restrict gen_esp_err_to_name.py to only search in components/ 2023-11-06 11:41:39 +08:00
idf_monitor.py feat(idf_monitor): move idf_monitor to separate repo 2023-02-03 11:20:15 +01:00
idf_size.py fix: make idf_size.py compatible with python3.8 2024-05-08 11:21:10 +02:00
idf_tools.py feat: add python script to activate ESP-IDF environment 2024-09-05 10:13:03 +02:00
idf.py feat(tools): add 'idf.py qemu' extension 2023-12-03 07:45:19 +01:00
install_util.py ci: remove ttfw related files 2023-10-16 10:23:09 +02:00
mkdfu.py tools: remove the dependency on the future package 2022-08-09 16:46:58 +02:00
mkuf2.py feat(tools): move uf2 generation to esptool 2023-10-09 15:38:30 +02:00
python_version_checker.py feat: Drop Python 3.7 support 2023-08-08 08:37:29 +02:00
requirements_schema.json Tools: Make easier the detection of the list of Python features 2022-02-03 19:02:14 +01:00
requirements.json ci: remove ttfw related files 2023-10-16 10:23:09 +02:00
set-submodules-to-github.sh
split_paths_by_spaces.py tools: fixup version references related to paths with spaces 2022-05-02 19:05:47 +02:00
tools_schema.json fix(schema): Add missing linux-armhf to tools_schema 2024-06-14 15:57:00 -06:00
tools.json feat(tools): update openocd version to v0.12.0-esp32-20240821 2024-08-26 17:36:53 +00:00