MCPcopy Index your code
hub / github.com/openai/plugins / state_dir

Function state_dir

plugins/codex-security/scripts/workbench_db.py:313–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311
312
313def state_dir() -> Path:
314 state_dir = os.environ.get("CODEX_SECURITY_STATE_DIR")
315 if state_dir:
316 return Path(state_dir).expanduser().resolve()
317 codex_home = Path(os.environ.get("CODEX_HOME", "~/.codex")).expanduser()
318 return codex_home / "state" / "plugins" / "codex-security"
319
320
321def database_path() -> Path:

Callers 3

database_pathFunction · 0.85
scan_completion_lockFunction · 0.85
start_scanFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected