Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
yzhh 2020-08-04 17:36:53 +08:00
parent 2458104d8e
commit 83898b6103

View file

@ -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))