The test was hardcoded to check /usr/bin/esptool, but esptool lives in ~/.local/bin/ on this system. Use shutil.which() to properly search PATH.
The test was hardcoded to check /usr/bin/esptool, but esptool lives in ~/.local/bin/ on this system. Use shutil.which() to properly search PATH.