mirror of https://github.com/arendst/Tasmota.git
14 lines
435 B
Python
14 lines
435 B
Python
Import("env")
|
|
import os
|
|
|
|
# pio < 4.0.0
|
|
# from base64 import b64decode
|
|
# env.Replace(UPLOADER="pio-tools\espupload.py")
|
|
# env.Replace(UPLOADERFLAGS="")
|
|
# env.Replace(UPLOADCMD="$UPLOADER -u " + b64decode(ARGUMENTS.get("UPLOAD_PORT")) + " -f $SOURCES")
|
|
|
|
# pio >= 4.0.0
|
|
env.Replace(UPLOADER=os.path.join("pio-tools", "espupload.py"))
|
|
env.Replace(UPLOADERFLAGS="")
|
|
env.Replace(UPLOADCMD="$PYTHONEXE $UPLOADER -u $UPLOAD_PORT -f $SOURCES")
|