

def QueryPathOfRegTypeLib(libid, wVerMajor, wVerMinor, lcid=0):
    'Return the path of a registered type library'
    import _winreg
    try:
        hkey = _winreg.OpenKey(_winreg.HKEY_CLASSES_ROOT, ('Typelib\\%s\\%s.%s\\%x\\win32' % (libid, wVerMajor, libid, lcid)))
    except WindowsError:
        hkey = _winreg.OpenKey(_winreg.HKEY_CLASSES_ROOT, ('Typelib\\%s\\%s.%s\\%x' % (libid, wVerMajor, wVerMinor, lcid)))
    return _winreg.QueryValueEx(hkey, '')[0]

dataset/ETHPy150Open enthought/comtypes/comtypes/typeinfo.py QueryPathOfRegTypeLib/VarMisuse@45/107 `wVerMinor`->`libid`