diff --git a/pio-tools/post_esp32.py b/pio-tools/post_esp32.py index d3ac6c7af..b2027def7 100644 --- a/pio-tools/post_esp32.py +++ b/pio-tools/post_esp32.py @@ -19,7 +19,9 @@ Import("env") import subprocess -from os.path import join +from os.path import expanduser, join +home = expanduser("~") +esptool = join(home, ".platformio", "packages", "tool-esptoolpy", "esptool.py") import esptool def esp32_create_combined_bin(source, target, env):