ocarina/src/core/session.py

27 lines
479 B
Python
Raw Normal View History

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
from bt.file import *
global settings
2010-02-17 22:22:43 -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
settings = Settings()
settings.setdefaults()