MCPcopy Create free account
hub / github.com/boostorg/build / _env_set

Function _env_set

v2/test/configuration.py:268–277  ·  view source on GitHub ↗

Sets the given environment variable value or unsets it, if the value is None.

(name, value)

Source from the content-addressed store, hash-verified

266
267
268def _env_set(name, value):
269 """
270 Sets the given environment variable value or unsets it, if the value is
271 None.
272
273 """
274 if value is None:
275 _env_del(name)
276 else:
277 os.environ[name] = value
278
279
280def _getExternalEnv(name):

Callers 2

__call__Method · 0.85

Calls 1

_env_delFunction · 0.85

Tested by

no test coverage detected