ocarina/src/core/ocarina.py

47 lines
942 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("ocarina", join(settings.get("user"),".ocarina2") )
settings.set("user", join(settings.get("user"),".ocarina2"))
manager.restoresession()
mkdir(settings.get("user"))
bt.proc.setname("Ocarina2")
#from tools import library
# 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