Update __init__.py
This commit is contained in:
parent
aa3c7bcfed
commit
5a467e2ebf
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
Reference in a new issue