36 lines
569 B
Python
36 lines
569 B
Python
#! /usr/bin/python
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Mar 13, 2010 4:19:39 PM$"
|
|
|
|
|
|
from ct.dict import Dict
|
|
from ct import opts
|
|
from ct import path
|
|
import event
|
|
|
|
|
|
global settings
|
|
global vars
|
|
global events
|
|
global plugins
|
|
global alias
|
|
|
|
settings = Dict()
|
|
vars = Dict()
|
|
alias = Dict()
|
|
events = event.Event()
|
|
plugins = None
|
|
|
|
|
|
# Set default values
|
|
def init():
|
|
opts.parse()
|
|
path.mkdir(vars["$ocarina"])
|
|
|
|
# Set verbose value
|
|
if opts.opts.has("v") == True:
|
|
vars["$verbose"] += opts.opts["v"]
|
|
if opts.opts.has("verbose") == True:
|
|
vars["$verbose"] += opts.opts["verbose"]
|