Update __init__.py
This commit is contained in:
parent
2458104d8e
commit
83898b6103
1 changed files with 3 additions and 2 deletions
|
@ -1,13 +1,14 @@
|
|||
from configparser import ConfigParser
|
||||
import sys
|
||||
from os.path import abspath
|
||||
def iwlist():
|
||||
cp = ConfigParser()
|
||||
cp.read("/home/wdljt/oasisakari/bot/interwikilist/list.cfg")
|
||||
cp.read(abspath("..")+"/interwikilist/list.cfg")
|
||||
section = cp.sections()[0]
|
||||
return(cp.options(section))
|
||||
|
||||
def iwlink(iw):
|
||||
cp = ConfigParser()
|
||||
cp.read("/home/wdljt/oasisakari/bot/interwikilist/list.cfg")
|
||||
cp.read(abspath("..")+"/home/wdljt/oasisakari/bot/interwikilist/list.cfg")
|
||||
section = cp.sections()[0]
|
||||
return(cp.get(section,iw))
|
Reference in a new issue