(cls, fullname)
| 686 | |
| 687 | @classmethod |
| 688 | def _search_registry(cls, fullname): |
| 689 | if cls.DEBUG_BUILD: |
| 690 | registry_key = cls.REGISTRY_KEY_DEBUG |
| 691 | else: |
| 692 | registry_key = cls.REGISTRY_KEY |
| 693 | key = registry_key.format(fullname=fullname, |
| 694 | sys_version='%d.%d' % sys.version_info[:2]) |
| 695 | try: |
| 696 | with cls._open_registry(key) as hkey: |
| 697 | filepath = winreg.QueryValue(hkey, '') |
| 698 | except OSError: |
| 699 | return None |
| 700 | return filepath |
| 701 | |
| 702 | @classmethod |
| 703 | def find_spec(cls, fullname, path=None, target=None): |
no test coverage detected