def main(): # gpgme_check_version() necessary for initialisation according to # gogme 1.1.6 and this is not done automatically in pyme-0.7.0 print "gpgme version:", core.check_version(None) for eng in core.get_engine_info(): printgetkeyresults(eng)
def print_engine_infos(): print "gpgme version:", core.check_version(None) print "engines:" for engine in core.get_engine_info(): print engine.file_name, engine.version for proto in [protocol.OpenPGP, protocol.CMS]: print core.get_protocol_name(proto), core.engine_check_version(proto)