3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
8 mypath = str(os.path.dirname(os.path.abspath(__file__)))
9 confp = ConfigParser.SafeConfigParser()
11 confpath=os.path.join(mypath,Conf)
15 return confp.get('path', string)
16 def getdbpath(string):
18 return confp.get('db', 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)