* 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)
| 819 | * directory (a namespace portion) has no file of its own. |
| 820 | */ |
| 821 | function pythonModuleAt(base: string, index: PythonModuleIndex): string | null { |
| 822 | const init = joinRel(base, '__init__.py'); |
| 823 | if (index.files.has(init)) return init; |
| 824 | return index.files.has(`${base}.py`) ? `${base}.py` : null; |
| 825 | } |
| 826 | |
| 827 | /** |
| 828 | * The module file for the dotted path `relPath` (slash-joined) under `root`, |
no test coverage detected