MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _subst_vars

Function _subst_vars

tools/python-3.11.9-amd64/Lib/sysconfig.py:244–251  ·  view source on GitHub ↗
(s, local_vars)

Source from the content-addressed store, hash-verified

242
243
244def _subst_vars(s, local_vars):
245 try:
246 return s.format(**local_vars)
247 except KeyError as var:
248 try:
249 return s.format(**os.environ)
250 except KeyError:
251 raise AttributeError(f'{var}') from None
252
253def _extend_dict(target_dict, other_dict):
254 target_keys = target_dict.keys()

Callers 1

_expand_varsFunction · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected