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

Method load_configuration

tools/ng/core.py:101–114  ·  view source on GitHub ↗

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

(self, config_file: str = 'rtconfig.h')

Source from the content-addressed store, hash-verified

99 self.logger.debug(f"Prepared environment with RTT_ROOT={self.root_directory}")
100
101 def load_configuration(self, config_file: str = 'rtconfig.h') -> None:
102 """
103 Load configuration from rtconfig.h.
104
105 Args:
106 config_file: Path to configuration file
107 """
108 config_path = os.path.join(self.bsp_directory, config_file)
109 if os.path.exists(config_path):
110 self.config_manager.load_from_file(config_path)
111 self.build_options = self.config_manager.get_all_options()
112 self.logger.info(f"Loaded configuration from {config_file}")
113 else:
114 self.logger.warning(f"Configuration file {config_file} not found")
115
116 def get_dependency(self, depend: Any) -> bool:
117 """

Callers 1

load_rtconfigFunction · 0.80

Calls 3

load_from_fileMethod · 0.80
get_all_optionsMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected