Find a filesystem path for module `id` or the reason it can't be found.
(id: str, manager: BuildManager)
| 3871 | |
| 3872 | |
| 3873 | def find_module_with_reason(id: str, manager: BuildManager) -> ModuleSearchResult: |
| 3874 | """Find a filesystem path for module `id` or the reason it can't be found.""" |
| 3875 | if manager.stats_enabled: |
| 3876 | t0 = time.time() |
| 3877 | x = manager.find_module_cache.find_module(id, fast_path=False) |
| 3878 | if manager.stats_enabled: |
| 3879 | manager.add_stats(find_module_time=time.time() - t0, find_module_calls=1) |
| 3880 | return x |
| 3881 | |
| 3882 | |
| 3883 | def in_partial_package(id: str, manager: BuildManager) -> bool: |
no test coverage detected
searching dependent graphs…