A private daemon rendezvous parent, a sibling of the cache directory.
(cache)
| 26 | |
| 27 | |
| 28 | def 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 | |
| 37 | def run_cli(binary, cache, args, timeout=60, extra_env=None): |