mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-22 13:57:16 +00:00

When vscode is ran from the Tasmota folder in Linux, build fails with message : ```Executing task: pio run < The terminal process failed to launch: Path to shell executable "pio" is not a file of a symlink.``` Renaming pio folder into pio-tools solve the problem. Note: the problem can still occur if the user have a pio folder in his PATH...
13 lines
410 B
Python
13 lines
410 B
Python
Import("env")
|
|
|
|
# pio < 4.0.0
|
|
# from base64 import b64decode
|
|
# env.Replace(UPLOADER="scp")
|
|
# env.Replace(UPLOADERFLAGS="")
|
|
# env.Replace(UPLOADCMD="$UPLOADER $SOURCES " + b64decode(ARGUMENTS.get("UPLOAD_PORT")) + "/" + b64decode(ARGUMENTS.get("PIOENV")) + ".bin")
|
|
|
|
# pio >= 4.0.0
|
|
env.Replace(UPLOADER="scp")
|
|
env.Replace(UPLOADERFLAGS="")
|
|
env.Replace(UPLOADCMD='$UPLOADER $SOURCES "$UPLOAD_PORT/${PIOENV}.bin"')
|