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

Function get_env

tests/autoalloc/test_autoalloc.py:434–439  ·  view source on GitHub ↗
(item: str)

Source from the content-addressed store, hash-verified

432 line = get_exec_line(script_path)
433
434 def get_env(item: str) -> Optional[Tuple[str, str]]:
435 if "=" in item:
436 key, value = item.split("=", maxsplit=1)
437 if key.isupper():
438 return (key, value)
439 return None
440
441 env = {}
442 cmd = None

Callers 1

parse_exec_lineFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected