Update __init__.py
This commit is contained in:
parent
d9c5cc90af
commit
674cf8ded4
1 changed files with 2 additions and 2 deletions
|
@ -3,12 +3,12 @@ import sys
|
||||||
from os.path import abspath
|
from os.path import abspath
|
||||||
def iwlist():
|
def iwlist():
|
||||||
cp = ConfigParser()
|
cp = ConfigParser()
|
||||||
cp.read(os.path.abspath("list.cfg"))
|
cp.read(abspath("list.cfg"))
|
||||||
section = cp.sections()[0]
|
section = cp.sections()[0]
|
||||||
return(cp.options(section))
|
return(cp.options(section))
|
||||||
|
|
||||||
def iwlink(iw):
|
def iwlink(iw):
|
||||||
cp = ConfigParser()
|
cp = ConfigParser()
|
||||||
cp.read(os.path.abspath("list.cfg"))
|
cp.read(abspath("list.cfg"))
|
||||||
section = cp.sections()[0]
|
section = cp.sections()[0]
|
||||||
return(cp.get(section,iw))
|
return(cp.get(section,iw))
|
Reference in a new issue