X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=e77d3f25a93deb0a3cc3c52505bfbe3daa0f1d34;hp=4479eaf0d9906801bdc0d39f9c1f510892110ca6;hb=13666be5de5eeffbe63774c3c0aecd407b519ac6;hpb=a503f041dc4947ee21c1d353ddd05ddb13a5e322 diff --git a/functions.py b/functions.py index 4479eaf..e77d3f2 100644 --- a/functions.py +++ b/functions.py @@ -436,7 +436,10 @@ def ReadDicoAsDico(dicopath): return dico def ReadLexique(parent, lang = 'french'): - parent.lexique = ReadDicoAsDico(parent.DictPath.get(lang, 'french')) + if lang != 'other' : + parent.lexique = ReadDicoAsDico(parent.DictPath.get(lang, 'french')) + else : + parent.lexique = {} def ReadList(filein, encoding = sys.getdefaultencoding()): #file = open(filein)