modifié: m/loadConf.py
This commit is contained in:
parent
fa29e8ce05
commit
1059204e16
@ -3,12 +3,9 @@ class LoadConf(object):
|
|||||||
with open("m/fichier/conf", "r") as source :
|
with open("m/fichier/conf", "r") as source :
|
||||||
for ligne in source:
|
for ligne in source:
|
||||||
data = ligne.rstrip('\n\r').split('=')
|
data = ligne.rstrip('\n\r').split('=')
|
||||||
try :
|
|
||||||
if data[0] == key :
|
if data[0] == key :
|
||||||
source.close()
|
source.close()
|
||||||
return data[1]
|
return data[1]
|
||||||
except Exception, e :
|
|
||||||
pass
|
|
||||||
source.close()
|
source.close()
|
||||||
return "error"
|
return "error"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user