# moduleresource

from direct.pyinst.resource import moduleresource

A module resource (differs from script in that it will generally be worked with as a .pyc instead of in source form)

## Inheritance:

moduleresource: scriptresource
scriptresource: pythonresource
pythonresource: resource
resource:

## Methods of moduleresource:

__init__
asBinary
asSource

## Methods of scriptresource:

__getattr__
__init__
asFilter
asSource
dependencies

## Methods of resource:

__cmp__
__init__
__repr__
asBinary
asFilter
asSource
contents
dependencies

__init__ def __init__(self, name, fullname) Undocumented function.

asBinary def asBinary(self) Return self as a dataresource (ie, a binary file wrapper).

asSource def asSource(self) Return self as a scriptresource (ie, uncompiled form).

__getattr__ def __getattr__(self, name) Undocumented function.

__init__ def __init__(self, name, fullname) Undocumented function.

asFilter def asFilter(self) Return a ModFilter based on self.

asSource def asSource(self) Return self as a dataresource (ie, a text file wrapper).

dependencies def dependencies(self) Return all dependencies (Python and binary) of self.

__cmp__ def __cmp__(self, other) Undocumented function.

__init__ def __init__(self, name, path, typ) NAME is the logical name of the resource. PATH is the full path to the resource. TYP is the type code. No editting or sanity checks.

__repr__ def __repr__(self) Undocumented function.

asBinary def asBinary(self) Return self in binary form. Base implementation returns self

asFilter def asFilter(self) Create a tocfilter based on self. Pure virtual

asSource def asSource(self) Return self in source form. Base implementation returns self

contents def contents(self) A list of resources within this resource. Overridable. Base implementation returns [self]

dependencies def dependencies(self) A list of resources this resource requires. Overridable. Base implementation returns []