def pefile_read_version(filename):
 vers = {'FileVersion': (0, 0, 0, 0), 'ProductVersion': (0, 0, 0, 0), 'translations': {'lang_id1': {'Comments': '', 'CompanyName': '', 'FileDescription': '', 'FileVersion': '', 'InternalName': '', 'LegalCopyright': '', 'LegalTrademarks': '', 'OriginalFilename': '', 'PrivateBuild': '', 'ProductName': '', 'ProductVersion': '', 'SpecialBuild': ''}}}
 pe = pefile.PE(filename)
 from pprint import pprint
 pprint(pe.VS_FIXEDFILEINFO)
 print dir(pe.VS_FIXEDFILEINFO)
 print repr(pe.VS_FIXEDFILEINFO)
 print pe.dump_info()
 pe.close()
 return vers

def pefile_read_version ( filename ) : vers = { 'FileVersion' : ( 0 , 0 , 0 , 0 ) , 'ProductVersion' : ( 0 , 0 , 0 , 0 ) , 'translations' : { 'lang_id1' : { 'Comments' : '' , 'CompanyName' : '' , 'FileDescription' : '' , 'FileVersion' : '' , 'InternalName' : '' , 'LegalCopyright' : '' , 'LegalTrademarks' : '' , 'OriginalFilename' : '' , 'PrivateBuild' : '' , 'ProductName' : '' , 'ProductVersion' : '' , 'SpecialBuild' : '' } } } pe = pefile . PE ( filename ) from pprint import pprint pprint ( pe . VS_FIXEDFILEINFO ) print dir ( pe . VS_FIXEDFILEINFO ) print repr ( pe . VS_FIXEDFILEINFO ) print pe . dump_info ( ) pe . close ( ) return vers
return structure like: # translation independent information .