MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / run

Function run

eval/run_real_model.py:247–259  ·  view source on GitHub ↗
(cmd, cwd=None, env=None, timeout=None, check=True)

Source from the content-addressed store, hash-verified

245
246
247def run(cmd, cwd=None, env=None, timeout=None, check=True):
248 result = subprocess.run(
249 cmd,
250 cwd=cwd,
251 env=env,
252 stdout=subprocess.PIPE,
253 stderr=subprocess.STDOUT,
254 text=True,
255 timeout=timeout,
256 )
257 if check and result.returncode != 0:
258 sys.exit(f"command failed ({result.returncode}): {' '.join(map(str, cmd))}\n{result.stdout}")
259 return result
260
261
262def resolve_store_db_path(tracedecay_bin, fixture, env):

Callers 5

resolve_store_db_pathFunction · 0.70
build_fixtureFunction · 0.70
ensure_hermes_profileFunction · 0.70
drive_hermesFunction · 0.70
drive_cursor_agentFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected