def writeestr(dst, edict):
 os.unlink(dst.as_pathname())
 Res.FSpCreateResFile(dst, 'RSED', 'rsrc', smAllScripts)
 output = Res.FSpOpenResFile(dst, WRITE)
 Res.UseResFile(output)
 for num in edict.keys():
  res = Res.Resource(Pstring(edict[num][0]))
  res.AddResource('Estr', num, '')
  res.WriteResource()
 Res.CloseResFile(output)

def writeestr ( dst , edict ) : os . unlink ( dst . as_pathname ( ) ) Res . FSpCreateResFile ( dst , 'RSED' , 'rsrc' , smAllScripts ) output = Res . FSpOpenResFile ( dst , WRITE ) Res . UseResFile ( output ) for num in edict . keys ( ) : res = Res . Resource ( Pstring ( edict [ num ] [ 0 ] ) ) res . AddResource ( 'Estr' , num , '' ) res . WriteResource ( ) Res . CloseResFile ( output )
create estr resource file given a dictionary of errors .