Rename pio folder to pio-tools solve linux build errors

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...
This commit is contained in:
Barbudor 2020-11-17 22:01:42 +01:00
parent 747f633c96
commit 1694087a28
10 changed files with 7 additions and 7 deletions

View File

@ -3,11 +3,11 @@ import os
# pio < 4.0.0
# from base64 import b64decode
# env.Replace(UPLOADER="pio\espupload.py")
# 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", "espupload.py"))
env.Replace(UPLOADER=os.path.join("pio-tools", "espupload.py"))
env.Replace(UPLOADERFLAGS="")
env.Replace(UPLOADCMD="$UPLOADER -u $UPLOAD_PORT -f $SOURCES")

View File

@ -93,10 +93,10 @@ lib_extra_dirs =
lib/lib_div
[scripts_defaults]
extra_scripts = pio/strip-floats.py
pio/name-firmware.py
pio/gzip-firmware.py
pio/override_copy.py
extra_scripts = pio-tools/strip-floats.py
pio-tools/name-firmware.py
pio-tools/gzip-firmware.py
pio-tools/override_copy.py
[esp_defaults]
; *** remove undesired all warnings

View File

@ -58,7 +58,7 @@ build_flags = ${core.build_flags}
upload_port = COM5
extra_scripts = ${scripts_defaults.extra_scripts}
; pio/obj-dump.py
; pio-tools/obj-dump.py
lib_extra_dirs = ${library.lib_extra_dirs}