Update index.py
This commit is contained in:
parent
6f5900c0d0
commit
8bb46df983
|
|
@ -216,8 +216,11 @@ def getRootPath():
|
|||
|
||||
|
||||
def getDbConfValue():
|
||||
content = mw.readFile(getConf())
|
||||
conf = getConf()
|
||||
if not os.path.exists(conf):
|
||||
return {}
|
||||
|
||||
content = mw.readFile(conf)
|
||||
rep_scope = "\[database\](.*?)\["
|
||||
tmp = re.findall(rep_scope, content, re.S)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue