File: shutdown.py

package info (click to toggle)
python-pluginbase 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 268 kB
  • sloc: python: 537; makefile: 118
file content (9 lines) | stat: -rw-r--r-- 275 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
from pluginbase import PluginBase

base = PluginBase(package='dummy.modules')
plugin_source = base.make_plugin_source(
    searchpath=['./plugins'])

# This dangles around.  This will be collected when the interpreter
# shuts down.
hello = plugin_source.load_plugin('hello')