modifié: m/loadConf.py
This commit is contained in:
parent
b23de92f6c
commit
6f5bc4cdad
@ -5,7 +5,7 @@ class LoadConf(object):
|
|||||||
data = ligne.rstrip('\n\r').split('=')
|
data = ligne.rstrip('\n\r').split('=')
|
||||||
if data[0] in key :
|
if data[0] in key :
|
||||||
source.close()
|
source.close()
|
||||||
return str(data[1])
|
return data[1]
|
||||||
source.close()
|
source.close()
|
||||||
return "error"
|
return "error"
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ class LoadConf(object):
|
|||||||
return rep
|
return rep
|
||||||
|
|
||||||
def ipCamera(self) :
|
def ipCamera(self) :
|
||||||
return str(self.loadValue("camera"))
|
return loadValue("camera")
|
||||||
|
|
||||||
def portServ(self) :
|
def portServ(self) :
|
||||||
return str(self.loadValue("port"))
|
return loadValue("port")
|
||||||
|
Reference in New Issue
Block a user