 |
 |
 |
Python Computer Graphics Kit |
 |
 |
 |
A PluginDescriptor object keeps the status information
of a plugin file. It has the following attributes:
- filename
-
The absolute file name of the plugin.
- filedesc
-
A file descriptor tuple (suffix, mode, type) as
returned by the get_suffixes() function in the imp
module (type is one of
imp.PY_SOURCE, imp.PY_COMPILED
or imp.C_EXTENSION).
- objcount
-
Number of imported objects (usually this should be number of classes +
number of functions).
- classcount
-
Number of imported classes.
- funccount
-
Number of imported functions.
- status
-
Status flags. If everything is ok the status is
STATUS_OK, otherwise
its a combination of STATUS_EXCEPTION and STATUS_DUPLICATE.
- traceback
-
A string containing the traceback message (if the
STATUS_EXCEPTION
flag is set).
- objdescs
-
A list of object descriptors of all imported objects.
- module
-
The module object of the imported plugin.
- modulename
-
The name of the plugin module.
Release 2.0.0alpha8, documentation updated on February 24, 2008.