Escape path and fix issue with user account that contains spaces

This commit is contained in:
Ivan Kravets
2016-11-23 18:17:04 +02:00
parent 06fbb2d24b
commit aec1d31aa0
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ partition_table = env.Command(
join(env.subst("$BUILD_DIR"), "partitions_table.bin"),
join("$ESPIDF_DIR", "components",
"partition_table", "partitions_singleapp.csv"),
'"$PYTHONEXE" %s -q $SOURCE $TARGET' % join(
'"$PYTHONEXE" "%s" -q $SOURCE $TARGET' % join(
"$ESPIDF_DIR", "components", "partition_table", "gen_esp32part.py")
)
+4 -4
View File
@@ -113,10 +113,10 @@ env.Replace(
if env.subst("$PIOFRAMEWORK") == "arduino":
env.Append(
UPLOADERFLAGS=[
"0x1000", join("$FRAMEWORK_ARDUINOESP32_DIR", "tools",
"sdk", "bin", "bootloader.bin"),
"0x4000", join("$FRAMEWORK_ARDUINOESP32_DIR", "tools",
"sdk", "bin", "partitions_singleapp.bin"),
"0x1000", '"%s"' % join("$FRAMEWORK_ARDUINOESP32_DIR", "tools",
"sdk", "bin", "bootloader.bin"),
"0x4000", '"%s"' % join("$FRAMEWORK_ARDUINOESP32_DIR", "tools",
"sdk", "bin", "partitions_singleapp.bin"),
"0x10000"
]
)