# scriptresource

from direct.pyinst.resource import scriptresource

A top-level python resource.
Has (lazily computed) attributes, modules and binaries, which together are the scripts dependencies()

## Inheritance:

scriptresource: pythonresource
pythonresource: resource
resource:

## Methods of scriptresource:

__getattr__
__init__
asFilter
asSource
dependencies

## Methods of resource:

__cmp__
__init__
__repr__
asBinary
asFilter
asSource
contents
dependencies

__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 []