File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ filepath = '../py/circuitpy_mpconfig.mk'
2
+ with open (filepath ) as fp :
3
+ line = fp .readline ()
4
+ cnt = 1
5
+ fullbuild = []
6
+ defon = []
7
+ defoff = []
8
+ while line :
9
+ wordlist = line .split ()
10
+ if wordlist :
11
+ if wordlist [- 1 ] == "$(CIRCUITPY_FULL_BUILD)" :
12
+ fullbuild .append (wordlist [0 ])
13
+ elif wordlist [- 1 ] == "0" :
14
+ defoff .append (wordlist [0 ])
15
+ elif wordlist [- 1 ] == "1" :
16
+ defon .append (wordlist [0 ])
17
+ line = fp .readline ()
18
+ cnt += 1
19
+
20
+ print (str (cnt ) + " Lines Read\n " )
21
+ print ("\n FULL BUILDS ------------------------" )
22
+ for string in fullbuild :
23
+ print (string )
24
+
25
+ print ("\n ON BUILDS ------------------------" )
26
+ for string in defon :
27
+ print (string )
28
+
29
+ print ("\n OFF BUILDS ------------------------" )
30
+ for string in defoff :
31
+ print (string )
You can’t perform that action at this time.
0 commit comments