MCPcopy
hub / github.com/pex-tool/pex / _configured_env

Function _configured_env

pex/commands/command.py:344–350  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

342
343@contextmanager
344def _configured_env(options):
345 # type: (Namespace) -> Iterator[None]
346 if options.rc_file or not ENV.PEX_IGNORE_RCFILES:
347 with ENV.patch(**Variables(rc=options.rc_file).copy()):
348 yield
349 else:
350 yield
351
352
353@contextmanager

Callers 1

global_environmentFunction · 0.85

Calls 3

VariablesClass · 0.90
patchMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected