Find file path for module 'fullname'. For packages caller pass fullname as 'package.__init__'. Return None if nothing is found.
(self, fullname)
| 565 | self._add_parent_dirs(package_name, visited=set()) |
| 566 | |
| 567 | def get_module_path(self, fullname): |
| 568 | """ |
| 569 | Find file path for module 'fullname'. |
| 570 | For packages caller pass fullname as 'package.__init__'. |
| 571 | Return None if nothing is found. |
| 572 | """ |
| 573 | try: |
| 574 | if not self.is_package(fullname): |
| 575 | return _b(self._cache_module_path(fullname)) |
| 576 | except ImportError: |
| 577 | pass |
| 578 | |
| 579 | def is_package(self, fullname): |
| 580 | """Check if fullname is a package. Raise ImportError if fullname is not found""" |