MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / update_env

Method update_env

tests/utils/mock.py:13–17  ·  view source on GitHub ↗
(self, env: Dict[str, str])

Source from the content-addressed store, hash-verified

11 os.makedirs(self.directory, exist_ok=True)
12
13 def update_env(self, env: Dict[str, str]):
14 path = str(self.directory)
15 if "PATH" in env:
16 path += f":{env['PATH']}"
17 env["PATH"] = path
18
19 def redirect_program_to_binary(self, mocked_program: str, target_binary: Path):
20 """

Callers 1

make_default_envMethod · 0.80

Calls

no outgoing calls

Tested by 1

make_default_envMethod · 0.64