MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / execute

Method execute

codeclash/utils/environment.py:30–33  ·  view source on GitHub ↗
(self, action: str | dict, cwd: str = "", *, timeout: int | None = None)

Source from the content-addressed store, hash-verified

28def _scratch_dir() -> str | None:
29 """Local scratch dir for staging `docker cp` transfers. Defaults to the system temp dir.
30 Override with CODECLASH_TMPDIR (e.g. on AWS Batch, where the default temp dir misbehaves)."""
31 override = os.getenv("CODECLASH_TMPDIR")
32 if override:
33 Path(override).mkdir(parents=True, exist_ok=True)
34 return override
35
36

Callers 15

get_environmentMethod · 0.95
copy_between_containersFunction · 0.45
copy_to_containerFunction · 0.45
copy_logs_from_envMethod · 0.45
_pre_round_setupMethod · 0.45
execute_roundMethod · 0.45
validate_codeMethod · 0.45
_compile_agentMethod · 0.45
_run_simulationMethod · 0.45
execute_roundMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected