From 91affcd3e402c12a0ddaa008095a823878b43434 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 20 May 2022 19:52:02 +0800 Subject: [PATCH] bugfix --- appPublic/i18n.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/appPublic/i18n.py b/appPublic/i18n.py index fee5aef..cb32ca6 100644 --- a/appPublic/i18n.py +++ b/appPublic/i18n.py @@ -153,8 +153,9 @@ class MiniI18N: threadid = threading.currentThread() return self.clientLangs[threadid]['lang'] -def getI18N(coding='utf8'): - path = ProgramPath() +def getI18N(path=None, coding='utf8'): + if path is None: + path = ProgramPath() i18n = MiniI18N(path,coding) return i18n