44 lines
905 B
Python
44 lines
905 B
Python
#! /usr/bin/python
|
|
|
|
# To change this template, choose Tools | Templates
|
|
# and open the template in the editor.
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Feb 17, 2010 9:18:50 PM$"
|
|
|
|
|
|
from bt.settings import Settings
|
|
from bt.alias import Alias
|
|
from bt.file import *
|
|
from bt.message import write
|
|
from bt import signal
|
|
from manager import Manager
|
|
from bt import proc
|
|
|
|
global alias
|
|
global settings
|
|
global manager
|
|
|
|
|
|
def setSession():
|
|
write("Finding session...",2)
|
|
path = settings["appdir"]
|
|
mkdir(path)
|
|
path = join(path,"session")
|
|
mkdir(path)
|
|
settings["session"] = path
|
|
write("Using session: " + path,2)
|
|
|
|
|
|
|
|
settings = Settings()
|
|
# We want to configure settings as early as possible
|
|
settings.setdefaults()
|
|
|
|
manager = Manager()
|
|
alias = Alias()
|
|
|
|
# Register functions to call when all plugins have been loaded
|
|
signal.register("scion-plugins-loaded",proc.setup,0)
|
|
signal.register("scion-plugins-loaded",setSession,0)
|