use pio env for esptool path

This commit is contained in:
Jason2866 2022-01-07 11:07:36 +01:00 committed by GitHub
parent 705c39280c
commit c26742f9b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -18,14 +18,12 @@
Import("env")
import subprocess
platform = env.PioPlatform()
import sys
from os.path import join
from os.path import expanduser, join
home = expanduser("~")
esptoolpath = join(home, ".platformio", "packages", "tool-esptoolpy")
sys.path.append(esptoolpath)
sys.path.append(join(platform.get_package_dir("tool-esptoolpy")))
import esptool
def esp32_create_combined_bin(source, target, env):