Browse Source

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

Scott Lahteine 5 years ago
parent
commit
f9f20bb454
No account linked to committer's email address

+ 1
- 1
buildroot/share/PlatformIO/scripts/alfawise_Ux0.py View File

23
     finally:
23
     finally:
24
         firmware.close()
24
         firmware.close()
25
         marlin_alfa.close()
25
         marlin_alfa.close()
26
-env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);
26
+env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

+ 2
- 2
buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py View File

15
 				"$OBJCOPY",
15
 				"$OBJCOPY",
16
 				"-O",
16
 				"-O",
17
 				"ihex",
17
 				"ihex",
18
-				"$BUILD_DIR/${PROGNAME}.elf",
19
-				"$BUILD_DIR/${PROGNAME}.hex"
18
+				'"$BUILD_DIR/${PROGNAME}.elf"',
19
+				'"$BUILD_DIR/${PROGNAME}.hex"'
20
 			]), "Building $TARGET"))
20
 			]), "Building $TARGET"))
21
 
21
 
22
 # please keep $SOURCE variable, it will be replaced with a path to firmware
22
 # please keep $SOURCE variable, it will be replaced with a path to firmware

+ 1
- 1
buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py View File

39
 	os.rename(target[0].path, firmware_without_bootloader_dir)
39
 	os.rename(target[0].path, firmware_without_bootloader_dir)
40
 	#os.rename(target[0].dir.path+'/firmware_with_bootloader.bin', target[0].dir.path+'/firmware.bin')
40
 	#os.rename(target[0].dir.path+'/firmware_with_bootloader.bin', target[0].dir.path+'/firmware.bin')
41
 
41
 
42
-env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", addboot);
42
+env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', addboot);
43
 
43
 

+ 1
- 1
buildroot/share/PlatformIO/scripts/mks_robin.py View File

27
     finally:
27
     finally:
28
         firmware.close()
28
         firmware.close()
29
         robin.close()
29
         robin.close()
30
-env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);
30
+env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

+ 1
- 1
buildroot/share/PlatformIO/scripts/mks_robin_lite.py View File

27
     finally:
27
     finally:
28
         firmware.close()
28
         firmware.close()
29
         robin.close()
29
         robin.close()
30
-env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);
30
+env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

+ 1
- 1
buildroot/share/PlatformIO/scripts/mks_robin_mini.py View File

27
     finally:
27
     finally:
28
         firmware.close()
28
         firmware.close()
29
         robin.close()
29
         robin.close()
30
-env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);
30
+env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

+ 1
- 1
buildroot/share/PlatformIO/scripts/mks_robin_nano.py View File

27
     finally:
27
     finally:
28
         firmware.close()
28
         firmware.close()
29
         robin.close()
29
         robin.close()
30
-env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);
30
+env.AddPostAction('"$BUILD_DIR/${PROGNAME}.bin"', encrypt);

Loading…
Cancel
Save