资 源 简 介
pyres is a simple Python module for editing resources in PE files.
pyres currently acts as a command line utility which clones the RT_GROUP_ICON, RT_ICON and RT_VERSION resource types of two executables.
The goal of the project is to develop more capabilities for the module, such as adding/replacing icons and a set/get interface for resource strings.
The module currently supports only the English locale.
Example code:
```
refrom = pyres.ResourceEditor(sourcepe_filename)
reto = pyres.ResourceEditor(destpe_filename)
resources = refrom.getresources([pyres.RT_GROUP_ICON, pyres.RT_ICON, pyres.RT_VERSION])
reto.updateresources(resources)
```
Reference: http://www.skynet.ie/~caolan/publink/winresdump/winresdump/doc/resfmt.txt