| f | Resources are any readable files in a [package]. T | f | Resources are any readable files in a [package]. T |
| ypically, these are sound files, but other resourc | | ypically, these are sound files, but other resourc |
| e types may come along in the future. | | e types may come along in the future. |
| | | |
| Resources should be listed in a file called `Resou | | Resources should be listed in a file called `Resou |
| rces`, in the package directory. (See [package for | | rces`, in the package directory. (See [package for |
| mat].) Resources do not have to be listed, but the | | mat].) Resources do not have to be listed, but the |
| `Resources` listing is how package management too | | `Resources` listing is how package management too |
| ls know about them. | | ls know about them. |
| | | |
| t | | t | ## Resources file format
|
| | |
|
| | | The file is divided into sections, one for each re |
| | | source. A section begins with a line that begins w |
| | | ith a colon:
|
| | |
|
| | | :resourcename
|
| | |
|
| | | A resource name must be a valid Python identifier |
| | | (possibly including dots). For example: `resname` |
| | | or `modname.resname`.
|
| | |
|
| | | The resource name is followed by the resource's me |
| | | tadata; zero or more lines defining key-value pair |
| | | s. These have the same format as in the [Metadata] |
| | | file.
|