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>