2010-02-17 22:22:43 -05:00
|
|
|
#! /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
|
2010-02-19 00:19:39 -05:00
|
|
|
from bt.file import *
|
|
|
|
global settings
|
2010-02-17 22:22:43 -05:00
|
|
|
|
|
|
|
|
2010-02-19 00:19:39 -05:00
|
|
|
def getSession():
|
|
|
|
path = settings["user"]
|
|
|
|
if path == expandPath("~"):
|
|
|
|
path = join(path,"."+settings["appname"])
|
|
|
|
mkdir(path)
|
|
|
|
path = join(path,"session")
|
|
|
|
mkdir(path)
|
|
|
|
return path
|
2010-02-17 22:22:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-19 00:19:39 -05:00
|
|
|
settings = Settings()
|
|
|
|
settings.setdefaults()
|