3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2010 Yukikaze
8 mypath = str(os.path.dirname(os.path.abspath(__file__)))
9 confp = ConfigParser.SafeConfigParser()
11 confpath=os.path.join(mypath,Conf)
13 def getPathSetting(string):
15 return confp.get('path', string)
16 def getDBPathSetting(string):
18 return confp.get('db', string)
19 def getEnvSetting(string):
21 return confp.get('env', string)
22 def setPath(option,value):
24 return confp.set('path',option,value)
25 def setDBPath(option,value):
27 return confp.set('db',option,value)
28 def setEnv(option,value):
30 return confp.set('env',option,value)