nouveau fichier: loadConf.py

nouveau fichier: login.py
This commit is contained in:
sidya82
2014-02-27 19:58:09 +01:00
parent 8b16109e3a
commit ca251812bd
2 changed files with 54 additions and 0 deletions

16
loadConf.py Normal file
View File

@@ -0,0 +1,16 @@
class LoadConf(object):
def loadHand(self):
with open("fichier/conf", "r") as source :
for ligne in source:
data = ligne.rstrip('\n\r').split('=')
if data[0] in 'handicap' :
source.close()
return data[1]
source.close()
return 0
def estAveugle(self):
if self.loadHand() == "1" :
return True
else :
return False