Bladeren bron

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

Scott Lahteine 5 jaren geleden
bovenliggende
commit
f9f20bb454
No account linked to committer's email address

+ 1
- 1
buildroot/share/PlatformIO/scripts/alfawise_Ux0.py Bestand weergeven

@@ -23,4 +23,4 @@ def encrypt(source, target, env):
23 23
     finally:
24 24
         firmware.close()
25 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 Bestand weergeven

@@ -15,8 +15,8 @@ env.AddPostAction(
15 15
 				"$OBJCOPY",
16 16
 				"-O",
17 17
 				"ihex",
18
-				"$BUILD_DIR/${PROGNAME}.elf",
19
-				"$BUILD_DIR/${PROGNAME}.hex"
18
+				'"$BUILD_DIR/${PROGNAME}.elf"',
19
+				'"$BUILD_DIR/${PROGNAME}.hex"'
20 20
 			]), "Building $TARGET"))
21 21
 
22 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 Bestand weergeven

@@ -39,5 +39,5 @@ def addboot(source,target,env):
39 39
 	os.rename(target[0].path, firmware_without_bootloader_dir)
40 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 Bestand weergeven

@@ -27,4 +27,4 @@ def encrypt(source, target, env):
27 27
     finally:
28 28
         firmware.close()
29 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 Bestand weergeven

@@ -27,4 +27,4 @@ def encrypt(source, target, env):
27 27
     finally:
28 28
         firmware.close()
29 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 Bestand weergeven

@@ -27,4 +27,4 @@ def encrypt(source, target, env):
27 27
     finally:
28 28
         firmware.close()
29 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 Bestand weergeven

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

Laden…
Annuleren
Opslaan