2010-03-14 21:29:38 -04:00
|
|
|
#! /usr/bin/python
|
2009-12-22 00:29:19 -05:00
|
|
|
|
|
|
|
__author__="bjschuma"
|
2010-03-14 21:29:38 -04:00
|
|
|
__date__ ="$Mar 13, 2010 4:19:39 PM$"
|
|
|
|
|
|
|
|
|
|
|
|
from ct.dict import Dict
|
|
|
|
from ct import opts
|
|
|
|
from ct import path
|
2010-03-31 00:13:37 -04:00
|
|
|
from ct import call
|
2010-03-14 21:29:38 -04:00
|
|
|
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()
|
2010-03-21 17:06:04 -04:00
|
|
|
path.mkdir(vars["$ocarina"])
|
2010-03-14 21:29:38 -04:00
|
|
|
|
|
|
|
# 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"]
|