41 lines
769 B
Python
41 lines
769 B
Python
# This is a simple test plugin, to make sure everything is working
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Dec 27, 2009 8:07:18 PM$"
|
|
|
|
|
|
global name, app, type, path, opt
|
|
name = "test"
|
|
app = "scion"
|
|
type = "core"
|
|
path = ""
|
|
opt = []
|
|
|
|
from bt.message import write
|
|
from bt.file import expandPath
|
|
from tools.library import library
|
|
|
|
|
|
# Called every time the plugin is enabled
|
|
def open():
|
|
pass
|
|
#write("Example plugin has been started",True)
|
|
#write("Example plugin has been changed",True)
|
|
|
|
|
|
# Called every time the plugin is stopped
|
|
def close():
|
|
pass
|
|
#write("Example plugin has been stopped",True)
|
|
|
|
|
|
# Called when the plugin needs to perform some action
|
|
def run(args=None):
|
|
if args == None:
|
|
return
|
|
|
|
space = ' '
|
|
path = space.join(args)
|
|
library.scan(expandPath(path))
|
|
pass
|