I'm using openbabel 2.2.0 for windows (also fails on Mac)
This python script prints None for MIME types,
but the Description and GetID are fine.
Is GetMIMEType busted or maybe the swig?
Thanks,
TJ O'Donnell
import openbabel
obc=openbabel.OBConversion()
for ext in ('sdf','pdb','xyz','mol2'):
f = obc.FindFormat(ext)
print f.Description()
print 'ext=', f.GetID()
print 'mime=', f.GetMIMEType()
|