(start: str = None)
| 6 | _codeymd_cache: dict = {} # tracks which paths we've already logged |
| 7 | |
| 8 | def find_codeymd(start: str = None) -> Path | None: |
| 9 | start = Path(start or os.getcwd()) |
| 10 | for directory in [start] + list(start.parents)[:2]: |
| 11 | candidate = directory / CODEYMD_FILENAME |
| 12 | if candidate.exists(): |
| 13 | return candidate |
| 14 | return None |
| 15 | |
| 16 | def read_codeymd(start: str = None) -> str: |
| 17 | path = find_codeymd(start) |
no test coverage detected