Package lib :: Module plugin
[hide private]
[frames] | no frames]

Module plugin

source code

plugin handling routines

Functions [hide private]
[str,...]
available_files(parent, dir, fmatch=None)
find parent/dir/*.py files to be used for plugins
source code
[str,...]
plugin_list(cat)
return a sequence of available plugins, using available_files() and get_plugin_paths()
source code
[str,str,..]
get_plugin_paths()
return the plugin search paths
source code
Variables [hide private]
  resources = None
  __package__ = 'lib'
Function Details [hide private]

available_files(parent, dir, fmatch=None)

source code 

find parent/dir/*.py files to be used for plugins

Returns: [str,...]

Note:

  1. __init__.py should exist
  2. files starting with underscore are ignored
  3. if fnmatch is defined (base name), it matches a single file