MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / runtime_for

Function runtime_for

tests/windows/test_daemon_lifecycle.py:28–34  ·  view source on GitHub ↗

A private daemon rendezvous parent, a sibling of the cache directory.

(cache)

Source from the content-addressed store, hash-verified

26
27
28def runtime_for(cache):
29 """A private daemon rendezvous parent, a sibling of the cache directory."""
30 head, tail = os.path.split(cache)
31 runtime = "runtime" + tail[len("cache"):] if tail.startswith("cache") else tail + "-runtime"
32 path = os.path.join(head, runtime)
33 os.makedirs(path, exist_ok=True)
34 return path
35
36
37def run_cli(binary, cache, args, timeout=60, extra_env=None):

Callers 1

run_cliFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected