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

Function inject_environment_methods

tools/ng/adapter.py:43–56  ·  view source on GitHub ↗

Inject RT-Thread methods into SCons Environment. This should be called in PrepareBuilding after environment setup. Args: env: SCons Environment object

(env)

Source from the content-addressed store, hash-verified

41
42
43def inject_environment_methods(env) -> None:
44 """
45 Inject RT-Thread methods into SCons Environment.
46
47 This should be called in PrepareBuilding after environment setup.
48
49 Args:
50 env: SCons Environment object
51 """
52 RTEnv.inject_methods(env)
53
54 # Also set the environment in context
55 if _context:
56 _context.prepare_environment(env)
57
58
59def load_rtconfig(config_file: str = 'rtconfig.h') -> Dict[str, Any]:

Callers 2

PrepareBuildingFunction · 0.90
PrepareModuleBuildingFunction · 0.85

Calls 2

inject_methodsMethod · 0.80
prepare_environmentMethod · 0.80

Tested by

no test coverage detected