X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=e77d3f25a93deb0a3cc3c52505bfbe3daa0f1d34;hp=4479eaf0d9906801bdc0d39f9c1f510892110ca6;hb=f4cba135ed6aed06ee15e9d41a9091101a4c1bef;hpb=ab23968410d4e2eff482fd16a639801b457d5063 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)