Przeglądaj źródła

Python isnt always python2

So now this script is compatible with both python versions 2 and 3

Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Alexey Shvetsov 7 lat temu
rodzic
commit
12d212d1b4

+ 2
- 1
Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py Wyświetl plik

@@ -1,3 +1,4 @@
1
+from __future__ import print_function
1 2
 import sys
2 3
 
3 4
 #dynamic build flags for generic compile options
@@ -27,7 +28,7 @@ if __name__ == "__main__":
27 28
   for i in range(1, len(sys.argv)):
28 29
     args += " " + sys.argv[i]
29 30
 
30
-  print args
31
+  print(args)
31 32
 
32 33
 # extra script for linker options
33 34
 else:

Ładowanie…
Anuluj
Zapisz