From 08e4d96ad5010855a581484fb23825fce77083fc Mon Sep 17 00:00:00 2001 From: davidacm Date: Wed, 1 Feb 2023 05:46:05 -0600 Subject: [PATCH] fix an error when updating the paths of the ini file, the ini file must be updated before the first load of the library. --- addon/synthDrivers/_ibmeci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/synthDrivers/_ibmeci.py b/addon/synthDrivers/_ibmeci.py index e1e36b1..70bfbfe 100644 --- a/addon/synthDrivers/_ibmeci.py +++ b/addon/synthDrivers/_ibmeci.py @@ -278,6 +278,8 @@ def eciCheck(): setPathsFromConfig() if not path.exists(ttsPath): return False try: + # the ini file must be updated before the first load of the library. + updateIniPaths() loadEciLibrary().eciVersion return True except: @@ -288,7 +290,6 @@ def eciCheck(): def eciNew(): global avLangs eciCheck() - updateIniPaths() eci = loadEciLibrary() b=c_int() eci.eciGetAvailableLanguages(0,byref(b))