6.2.1.2 Plugin Initialization

The plugin initialization routine is only called once during the life of a PSE server process, when all the plugins are scanned and loaded by the PSE engine. In order to create an initialization routine, create a function with the following signature:

plugin_init( )
This function takes no arguments and can be used to initialize any internal structures needed for the plugin. Returns True upon successful initialization, False if the initialization failed (and the plugin will not appear in the pse.plugins package).

Note: The plugin_init function was previously named init_plugin in versions prior to PSE 3.0 and was optional. The plugin_init function is no longer optional as of PSE 3.0. While your PSE 2.x plugins will still function in PSE 3.0, you need to update your plugins to include a plugin_init function, and it needs to return either True or False.

Changed in version 3.0.