MCPcopy
hub / github.com/dataelement/Clawith / _default_agent_data_dir

Function _default_agent_data_dir

backend/app/config.py:31–35  ·  view source on GitHub ↗

Use Docker path in containers, user-writable path on local hosts.

()

Source from the content-addressed store, hash-verified

29
30
31def _default_agent_data_dir() -> str:
32 """Use Docker path in containers, user-writable path on local hosts."""
33 if _running_in_container():
34 return "/data/agents"
35 return str(Path.home() / ".clawith" / "data" / "agents")
36
37
38def _default_instance_id() -> str:

Callers 1

SettingsClass · 0.85

Calls 1

_running_in_containerFunction · 0.85

Tested by

no test coverage detected