* The module file at `base` (dir-relative path), in Python's own order: a * regular package `base/__init__.py` beats a module `base.py`; a bare * directory (a namespace portion) has no file of its own.
(base: string, index: PythonModuleIndex)
| 835 | * directory (a namespace portion) has no file of its own. |
| 836 | */ |
| 837 | function pythonModuleAt(base: string, index: PythonModuleIndex): string | null { |
| 838 | const init = joinRel(base, '__init__.py'); |
| 839 | if (index.files.has(init)) return init; |
| 840 | return index.files.has(`${base}.py`) ? `${base}.py` : null; |
| 841 | } |
| 842 | |
| 843 | /** |
| 844 | * The module file for the dotted path `relPath` (slash-joined) under `root`, |
no test coverage detected