From e039e593750cf0193f45531aa60661bc7acba458 Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Thu, 6 Jan 2022 22:02:59 +0000 Subject: [PATCH] next try to find esptool --- pio-tools/post_esp32.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pio-tools/post_esp32.py b/pio-tools/post_esp32.py index b2027def7..d4204bc00 100644 --- a/pio-tools/post_esp32.py +++ b/pio-tools/post_esp32.py @@ -19,9 +19,13 @@ Import("env") import subprocess +import sys + from os.path import expanduser, join + home = expanduser("~") -esptool = join(home, ".platformio", "packages", "tool-esptoolpy", "esptool.py") +esptoolpath = join(home, ".platformio", "packages", "tool-esptoolpy") +sys.path.append(esptoolpath) import esptool def esp32_create_combined_bin(source, target, env):