ocarina/src/base/scion.py

39 lines
787 B
Python

# To change this template, choose Tools | Templates
# and open the template in the editor.
__author__="bjschuma"
__date__ ="$Dec 4, 2009 3:37:21 PM$"
global name
name = "scion"
# We need to import settings before we can use disp()
import settings
# The first thing we do is import write() so we can occasionally print messages
from bt.message import write
write("Welcome to " + name)
# Next, we set the process name to ocarina2
from bt.proc import setname
setname(name)
# Import the plugin loader class!
import loader
import manager
def loadPluginPath(path):
loader.load.loaddir(path)
manager.manager.addPlugins(loader.load.getPlugins())
# Begin our main loop
def main():
for path in settings.get("PLUGPATH",True):
loadPluginPath(path)
if __name__ == "__main__":main()