ocarina/src/core/ocarina.py

45 lines
849 B
Python

#! /usr/bin/python
# To change this template, choose Tools | Templates
# and open the template in the editor.
__author__="bjschuma"
__date__ ="$Dec 21, 2009 9:18:52 PM$"
global name, app, type, path, opt
name = "ocarina"
app = "ocarina"
type = "core"
path = ""
opt = []
import settings
from bt.message import write
from bt.file import *
import bt.proc
from manager import manager
from tools import database
settings.set("user", join(settings.get("user"),".ocarina2"))
mkdir(settings.get("user"))
manager.restoresession()
bt.proc.setname("Ocarina2")
# Called every time the plugin is enabled
def open():
write("Ocarina has been started",True)
database.init()
# Called every time the plugin is stopped
def close():
write("Ocarina has been stopped",True)
# Called when the plugin needs to perform some action
def run(args=None):
pass