30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
def getConfig (sLang):
"load config.ini in <sLang> at gc_lang/<sLang>, returns xConfigParser object"
xConfig = configparser.SafeConfigParser()
xConfig.optionxform = str
try:
xConfig.read_file(open("gc_lang/" + sLang + "/config.ii", "r", encoding="utf-8"))
except FileNotFoundError:
print("# Error. Can’t read config file [" + sLang + "]")
exit()
return xConfig
def createOptionsLabelProperties (dOptLbl):
|
|
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
def getConfig (sLang):
"load config.ini in <sLang> at gc_lang/<sLang>, returns xConfigParser object"
xConfig = configparser.SafeConfigParser()
xConfig.optionxform = str
try:
xConfig.read_file(open("gc_lang/" + sLang + "/config.ini", "r", encoding="utf-8"))
except FileNotFoundError:
print("# Error. Can’t read config file [" + sLang + "]")
exit()
return xConfig
def createOptionsLabelProperties (dOptLbl):
|