def UpdateResourcesFromDict(dstpath, res, types=None, names=None, languages=None):
 if types:
  types = set(types)
 if names:
  names = set(names)
 if languages:
  languages = set(languages)
 for type_ in res:
  if ((not types) or (type_ in types)):
   for name in res[type_]:
    if ((not names) or (name in names)):
     for language in res[type_][name]:
      if ((not languages) or (language in languages)):
       UpdateResources(dstpath, res[type_][name][language], [type_], [name], [language])

def UpdateResourcesFromDict ( dstpath , res , types = None , names = None , languages = None ) : if types : types = set ( types ) if names : names = set ( names ) if languages : languages = set ( languages ) for type_ in res : if ( ( not types ) or ( type_ in types ) ) : for name in res [ type_ ] : if ( ( not names ) or ( name in names ) ) : for language in res [ type_ ] [ name ] : if ( ( not languages ) or ( language in languages ) ) : UpdateResources ( dstpath , res [ type_ ] [ name ] [ language ] , [ type_ ] , [ name ] , [ language ] )
update or add resources from resource dict in dll/exe file dstpath .