MCPcopy Create free account
hub / github.com/ExpressLRS/ExpressLRS / parse_flags

Function parse_flags

src/python/build_flags.py:92–103  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

90 build_flags.append(define)
91
92def parse_flags(path):
93 global build_flags
94 global json_flags
95 try:
96 with open(path, "r") as _f:
97 for define in _f:
98 define = define.strip()
99 process_build_flag(define)
100 process_json_flag(define)
101
102 except IOError:
103 print("File '%s' does not exist" % path)
104
105def process_flags(path):
106 global build_flags

Callers 1

process_flagsFunction · 0.85

Calls 2

process_build_flagFunction · 0.85
process_json_flagFunction · 0.85

Tested by

no test coverage detected