modifié: m/fichier/conf

modifié:         m/loadConf.py
	modifié:         superTornado.py
This commit is contained in:
sidya82
2014-03-03 00:52:36 +01:00
parent 1f746ecc2b
commit 76ef0554a9
3 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,8 @@
blind=1
camera=192.168.1.13
portCamera=80

View File

@ -3,9 +3,12 @@ class LoadConf(object):
with open("m/fichier/conf", "r") as source :
for ligne in source:
data = ligne.rstrip('\n\r').split('=')
if data[0] in key :
source.close()
return data[1]
try :
if data[0] in key :
source.close()
return data[1]
except Exception, e :
pass
source.close()
return "error"