1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

Allow py scripts to handle spaces in paths (#14876)

This commit is contained in:
Scott Lahteine 2019-08-08 05:38:24 -05:00 committed by GitHub
parent eb3a3d249e
commit f9f20bb454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View File

@ -23,4 +23,4 @@ def encrypt(source, target, env):
finally: finally:
firmware.close() firmware.close()
marlin_alfa.close() marlin_alfa.close()
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt); env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

View File

@ -15,8 +15,8 @@ env.AddPostAction(
"$OBJCOPY", "$OBJCOPY",
"-O", "-O",
"ihex", "ihex",
"$BUILD_DIR/${PROGNAME}.elf", '"$BUILD_DIR/${PROGNAME}.elf"',
"$BUILD_DIR/${PROGNAME}.hex" '"$BUILD_DIR/${PROGNAME}.hex"'
]), "Building $TARGET")) ]), "Building $TARGET"))
# please keep $SOURCE variable, it will be replaced with a path to firmware # please keep $SOURCE variable, it will be replaced with a path to firmware

View File

@ -39,5 +39,5 @@ def addboot(source,target,env):
os.rename(target[0].path, firmware_without_bootloader_dir) os.rename(target[0].path, firmware_without_bootloader_dir)
#os.rename(target[0].dir.path+'/firmware_with_bootloader.bin', target[0].dir.path+'/firmware.bin') #os.rename(target[0].dir.path+'/firmware_with_bootloader.bin', target[0].dir.path+'/firmware.bin')
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", addboot); env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', addboot);

View File

@ -27,4 +27,4 @@ def encrypt(source, target, env):
finally: finally:
firmware.close() firmware.close()
robin.close() robin.close()
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt); env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

View File

@ -27,4 +27,4 @@ def encrypt(source, target, env):
finally: finally:
firmware.close() firmware.close()
robin.close() robin.close()
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt); env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

View File

@ -27,4 +27,4 @@ def encrypt(source, target, env):
finally: finally:
firmware.close() firmware.close()
robin.close() robin.close()
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt); env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

View File

@ -27,4 +27,4 @@ def encrypt(source, target, env):
finally: finally:
firmware.close() firmware.close()
robin.close() robin.close()
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt); env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);