MCPcopy Create free account
hub / github.com/openai/plugins / project_config_paths

Function project_config_paths

plugins/codex-security/scripts/config_preflight.py:251–258  ·  view source on GitHub ↗
(project_root: Path, cwd: Path)

Source from the content-addressed store, hash-verified

249
250
251def project_config_paths(project_root: Path, cwd: Path) -> list[Path]:
252 relative = cwd.relative_to(project_root)
253 directories = [project_root]
254 current = project_root
255 for part in relative.parts:
256 current /= part
257 directories.append(current)
258 return [directory / ".codex" / "config.toml" for directory in directories]
259
260
261def discover_config_paths(

Callers 1

discover_config_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected