Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
yzhh 2020-08-04 17:40:01 +08:00
parent d9c5cc90af
commit 674cf8ded4

View file

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