# treeresource

from direct.pyinst.resource import treeresource

A subclass for a directory and subdirectories.

## Inheritance:

treeresource: dirresource
dirresource: resource
resource:

## Methods of treeresource:

__init__

## Methods of dirresource:

__init__
asFilter
contents

## Methods of resource:

__cmp__
__init__
__repr__
asBinary
asFilter
asSource
contents
dependencies

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

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

asFilter def asFilter(self) Undocumented function.

contents def contents(self, prefix='') Return the list of (typed) resources in self.name

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