(project_root: Path, cwd: Path)
| 249 | |
| 250 | |
| 251 | def 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 | |
| 261 | def discover_config_paths( |
no outgoing calls
no test coverage detected