|
Panda3D
|
Public Member Functions | |
| def | __init__ |
| def | add |
| def | extract |
Public Attributes | |
| os | |
Static Public Attributes | |
| int | HDRLEN = 12 |
| int | LEVEL = 9 |
| string | MAGIC = 'PYZ\0' |
| int | TOCPOS = 8 |
| dictionary | TOCTMPLT = {} |
| int | TRLLEN = 0 |
A subclass of Archive that compresses entries with zlib and uses a (marshalled) dict as a table of contents
| def __init__ | ( | self, | |
path = None, |
|||
start = 0 |
|||
| ) |
Initialize an Archive. If path is omitted, it will be an empty Archive. start is the seek position within path where the Archive starts.
Reimplemented from Archive.
| def add | ( | self, | |
| entry | |||
| ) |
Add an entry. ENTRY is a sequence where entry[0] is name and entry[1] is full path name. zlib compress the code object, and build a toc entry
Reimplemented from Archive.
| def extract | ( | self, | |
| name | |||
| ) |
Get the code object for NAME. Return None if name is not in the table of contents. Otherwise, return a tuple (ispkg, code)
Reimplemented from Archive.
int LEVEL = 9 [static] |
1.7.3