3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2011 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")
19 def getConfPath(string):
21 return confp.get('path', string)
22 def getConfDB(string):
24 return confp.get('db', string)
25 def getConfEnv(string):
27 return confp.get('env', string)
28 def getConfLog(string):
30 return confp.get('log', string)
31 def getConfDVB(string):
33 return confp.get('dvb',string)