Browse Source

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

pull/1/head
Scott Lahteine 5 years ago
committed by GitHub
parent
commit
f9f20bb454
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      buildroot/share/PlatformIO/scripts/alfawise_Ux0.py
  2. 4
      buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
  3. 2
      buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  4. 2
      buildroot/share/PlatformIO/scripts/mks_robin.py
  5. 2
      buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  6. 2
      buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  7. 2
      buildroot/share/PlatformIO/scripts/mks_robin_nano.py

2
buildroot/share/PlatformIO/scripts/alfawise_Ux0.py

@ -23,4 +23,4 @@ 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);

4
buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py

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

2
buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py

@ -39,5 +39,5 @@ def addboot(source,target,env):
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')
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", addboot);
env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', addboot);

2
buildroot/share/PlatformIO/scripts/mks_robin.py

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

2
buildroot/share/PlatformIO/scripts/mks_robin_lite.py

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

2
buildroot/share/PlatformIO/scripts/mks_robin_mini.py

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

2
buildroot/share/PlatformIO/scripts/mks_robin_nano.py

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

Loading…
Cancel
Save