find esptool for import

This commit is contained in:
Jason2866 2022-01-06 19:07:59 +01:00 committed by GitHub
parent b9dc142134
commit ea12ddeca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
Import("env") Import("env")
import subprocess 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 import esptool
def esp32_create_combined_bin(source, target, env): def esp32_create_combined_bin(source, target, env):