mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-05 14:35:17 +00:00
insert onLoad() routine in plugins
This commit is contained in:
parent
304b7ddeb0
commit
95d2d2f119
7 changed files with 170 additions and 12 deletions
|
|
@ -18,6 +18,28 @@ import mysql.connector
|
|||
|
||||
from includes import globals # Global variables
|
||||
|
||||
##
|
||||
#
|
||||
# onLoad function of plugin
|
||||
# will be called by the pluginLoader
|
||||
#
|
||||
def onLoad():
|
||||
"""
|
||||
While loading the plugins by pluginLoader.loadPlugins()
|
||||
this onLoad() routine are called
|
||||
|
||||
@requires: nothing
|
||||
|
||||
@return: nothing
|
||||
"""
|
||||
try:
|
||||
########## User onLoad CODE ##########
|
||||
|
||||
########## User onLoad CODE ##########
|
||||
|
||||
except:
|
||||
logging.error("unknown error")
|
||||
logging.debug("unknown error", exc_info=True)
|
||||
|
||||
##
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue