Skip to content

Commit

Permalink
fix an error when updating the paths of the ini file, the ini file mu…
Browse files Browse the repository at this point in the history
…st be updated before the first load of the library.
  • Loading branch information
davidacm committed Feb 1, 2023
1 parent 9af346a commit 08e4d96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/synthDrivers/_ibmeci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -288,7 +290,6 @@ def eciCheck():
def eciNew():
global avLangs
eciCheck()
updateIniPaths()
eci = loadEciLibrary()
b=c_int()
eci.eciGetAvailableLanguages(0,byref(b))
Expand Down

0 comments on commit 08e4d96

Please sign in to comment.