harderner config importer

This commit is contained in:
chrys 2016-10-12 21:45:27 +02:00
parent 622e12b9c5
commit fcf212d715

View File

@ -108,8 +108,12 @@ class settingsManager():
if not ":===:" in line: if not ":===:" in line:
continue continue
sepLine = line.split(':===:') sepLine = line.split(':===:')
if len(sepLine) != 2: if len(sepLine) == 1:
sepLine.append('') sepLine.append('')
elif len(sepLine) < 1:
continue
elif len(sepLine) > 2:
sepLine[1] = ':===:'
self.env['punctuation'][currDictName][sepLine[0]] = sepLine[1] self.env['punctuation'][currDictName][sepLine[0]] = sepLine[1]
self.env['runtime']['debug'].writeDebugOut("Punctuation: " + currDictName + '.' + str(sepLine[0]) + ' :' + sepLine[1] ,debug.debugLevel.INFO) self.env['runtime']['debug'].writeDebugOut("Punctuation: " + currDictName + '.' + str(sepLine[0]) + ' :' + sepLine[1] ,debug.debugLevel.INFO)
dictConfig.close() dictConfig.close()