prepared for modbus
This commit is contained in:
parent
149b702e05
commit
18b80015a8
6 changed files with 50 additions and 60 deletions
|
|
@ -4,6 +4,7 @@ Created on 21.11.2013
|
|||
@author: Philipp Rauch
|
||||
'''
|
||||
from sys import stderr
|
||||
|
||||
config = "config\ems.conf"
|
||||
|
||||
class Config():
|
||||
|
|
@ -94,6 +95,8 @@ class Config():
|
|||
line = line.lstrip('\'')
|
||||
# if master is not None:
|
||||
key, arg = self.getElement(line)
|
||||
if key == None:
|
||||
continue #skip errors
|
||||
res = []
|
||||
for a in arg:
|
||||
tmp = a.split(':')
|
||||
|
|
@ -109,7 +112,7 @@ class Config():
|
|||
elif line.find("=") != -1:
|
||||
key, arg = self.getElement(line)
|
||||
if key == None:
|
||||
continue
|
||||
continue #skip errors
|
||||
self.makeList(arg)
|
||||
arg = arg if len(arg) > 1 else arg[0]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue