This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
2014-02-27 18:58:09 +00:00
|
|
|
class LoadConf(object):
|
|
|
|
def loadHand(self):
|
2014-03-01 21:04:15 +00:00
|
|
|
with open("m/fichier/conf", "r") as source :
|
2014-02-27 18:58:09 +00:00
|
|
|
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
|