Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
yzhh 2020-08-04 17:42:07 +08:00
parent aa3c7bcfed
commit 5a467e2ebf

View file

@ -3,13 +3,12 @@ import sys
from os.path import abspath
def iwlist():
cp = ConfigParser()
print(abspath("."))
cp.read(abspath("list.cfg"))
cp.read(abspath("./interwikilist/list.cfg"))
section = cp.sections()[0]
return(cp.options(section))
def iwlink(iw):
cp = ConfigParser()
cp.read(abspath("list.cfg"))
cp.read(abspath("./interwikilist/list.cfg"))
section = cp.sections()[0]
return(cp.get(section,iw))