pythoncom.GetClassFile

PyIID = GetClassFile(fileName)

Supplies the CLSID associated with the given filename.

Parameters

fileName : str

The filename for which you are requesting the associated CLSID.