MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / load_from_file

Method load_from_file

tools/ng/config.py:183–191  ·  view source on GitHub ↗

Load configuration from file. Args: filepath: Path to rtconfig.h

(self, filepath: str)

Source from the content-addressed store, hash-verified

181 self.cache: Dict[str, bool] = {}
182
183 def load_from_file(self, filepath: str) -> None:
184 """
185 Load configuration from file.
186
187 Args:
188 filepath: Path to rtconfig.h
189 """
190 self.options = self.parser.parse_file(filepath)
191 self.cache.clear() # Clear dependency cache
192
193 def get_option(self, name: str) -> Optional[ConfigOption]:
194 """

Callers 1

load_configurationMethod · 0.80

Calls 2

parse_fileMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected