3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
8 mypath = str(os.path.dirname(os.path.abspath(__file__)))
9 confp = ConfigParser.SafeConfigParser()
12 if os.path.exists(os.path.join(mypath,Conf)):
13 confpath=os.path.join(mypath,Conf)
14 elif os.path.exists(os.path.join("/etc","rec10.conf")):
15 confpath=os.path.join("/etc","rec10.conf")
16 elif os.path.exists(os.path.join("/etc/rec10","rec10.conf")):
17 confpath=os.path.join("/etc/rec10","rec10.conf")
21 return confp.get('path', string)
22 def getdbpath(string):
24 return confp.get('db', string)
27 return confp.get('env', string)