# pkgresource

from direct.pyinst.resource import pkgresource

A Python package.
Note that contents() can be fooled by fancy __path__ statements.

## Inheritance:

pkgresource: pythonresource
pythonresource: resource
resource:

## Methods of pkgresource:

__init__
asFilter
contents
dependencies

## Methods of resource:

__cmp__
__init__
__repr__
asBinary
asFilter
asSource
contents
dependencies

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

asFilter def asFilter(self) Create a PkgFilter from self.

contents def contents(self, parent=None) Return a list of subpackages and modules in self.

dependencies def dependencies(self) Return the list of accumulated dependencies of all modules in 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 []