mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Restore process $PATH for SCons
This commit is contained in:
@ -123,10 +123,13 @@ for opt in ("LIB_IGNORE", "LIB_USE"):
|
|||||||
continue
|
continue
|
||||||
env[opt] = [l.strip() for l in env[opt].split(",") if l.strip()]
|
env[opt] = [l.strip() for l in env[opt].split(",") if l.strip()]
|
||||||
|
|
||||||
env.PrependENVPath(
|
# restore process $PATH
|
||||||
"PATH",
|
env['ENV']['PATH'] = getenv("PATH")
|
||||||
env.subst(join("$PIOPACKAGES_DIR", "$PIOPACKAGE_TOOLCHAIN", "bin"))
|
if env.subst("$PIOPACKAGE_TOOLCHAIN"):
|
||||||
)
|
env.PrependENVPath(
|
||||||
|
"PATH",
|
||||||
|
env.subst(join("$PIOPACKAGES_DIR", "$PIOPACKAGE_TOOLCHAIN", "bin"))
|
||||||
|
)
|
||||||
|
|
||||||
SConscriptChdir(0)
|
SConscriptChdir(0)
|
||||||
SConscript(env.subst("$BUILD_SCRIPT"))
|
SConscript(env.subst("$BUILD_SCRIPT"))
|
||||||
|
Reference in New Issue
Block a user