From: TJ O'D. <tj...@ac...> - 2008-09-04 16:57:38
|
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() |