Path hook for importlib.machinery.FileFinder.
(path)
| 1442 | |
| 1443 | """ |
| 1444 | def path_hook_for_FileFinder(path): |
| 1445 | """Path hook for importlib.machinery.FileFinder.""" |
| 1446 | if not _path_isdir(path): |
| 1447 | raise ImportError('only directories are supported', path=path) |
| 1448 | return cls(path, *loader_details) |
| 1449 | |
| 1450 | return path_hook_for_FileFinder |
| 1451 |
nothing calls this directly
no test coverage detected