From c1d4d23edc2e9a13bb23bea77c0f5940a542cbaa Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 20 May 2019 00:26:29 +0300 Subject: [PATCH] Fix issue when build environment contains spaces --- tools/platformio-build.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/platformio-build.py b/tools/platformio-build.py index 18b44c2c2e..ce5bbb2def 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -135,16 +135,16 @@ def scons_patched_match_splitext(path, suffixes=None): ElfToBin=Builder( action=env.VerboseAction(" ".join([ '"$PYTHONEXE"', - '"%s"' % env.subst(join(FRAMEWORK_DIR, "tools", "elf2bin.py")), - "--eboot", '"%s"' % env.subst(join( - FRAMEWORK_DIR, "bootloaders", "eboot", "eboot.elf")), - "--app", '"%s"' % "$SOURCE", + '"%s"' % join(FRAMEWORK_DIR, "tools", "elf2bin.py"), + "--eboot", '"%s"' % join( + FRAMEWORK_DIR, "bootloaders", "eboot", "eboot.elf"), + "--app", "$SOURCE", "--flash_mode", "$BOARD_FLASH_MODE", "--flash_freq", "${__get_board_f_flash(__env__)}", "--flash_size", "${__get_flash_size(__env__)}", - "--path", '"%s"' % env.subst(join( - platform.get_package_dir("toolchain-xtensa"), "bin")), - "--out", '"$TARGET"' + "--path", '"%s"' % join( + platform.get_package_dir("toolchain-xtensa"), "bin"), + "--out", "$TARGET" ]), "Building $TARGET"), suffix=".bin" )