Fix Python scripts unhandled quotes (#14926)

This commit is contained in:
Tanguy Pruvot
2019-08-13 02:50:34 +02:00
committed by Scott Lahteine
parent c6be989fca
commit 03df3f4a88
7 changed files with 11 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ for define in env['CPPDEFINES']:
env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08010000"))
env.Replace(LDSCRIPT_PATH="buildroot/share/PlatformIO/ldscripts/alfawise_Ux0.ld")
# Encrypt ${PROGNAME}.bin and save it as 'project.bin'
# Rename ${PROGNAME}.bin and save it as 'project.bin' (No encryption on the Longer3D)
def encrypt(source, target, env):
import os
@@ -23,4 +23,5 @@ def encrypt(source, target, env):
finally:
firmware.close()
marlin_alfa.close()
env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);