MCPcopy Create free account
hub / github.com/FastLED/FastLED / load_build_info

Method load_build_info

ci/util/build_info_analyzer.py:133–152  ·  view source on GitHub ↗

Load and parse build_info.json for a board. Args: board_name: Name of the board Returns: Parsed JSON data or None if file not found

(self, board_name: str)

Source from the content-addressed store, hash-verified

131 return None
132
133 def load_build_info(self, board_name: str) -> Optional[dict[str, Any]]:
134 """
135 Load and parse build_info.json for a board.
136
137 Args:
138 board_name: Name of the board
139
140 Returns:
141 Parsed JSON data or None if file not found
142 """
143 build_info_path = self.get_build_info_path(board_name)
144 if not build_info_path:
145 return None
146
147 try:
148 with open(build_info_path, "r") as f:
149 return json.load(f)
150 except (json.JSONDecodeError, IOError) as e:
151 print(f"Error loading build_info.json for {board_name}: {e}")
152 return None
153
154 def create_board_key_from_build_info(
155 self, data: dict[str, Any], board_name: str

Callers 4

get_platform_definesMethod · 0.95
get_compiler_infoMethod · 0.95
get_toolchain_aliasesMethod · 0.95
get_all_infoMethod · 0.95

Calls 3

get_build_info_pathMethod · 0.95
printFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected