Skip to content

Commit

Permalink
Add version number to startup log message
Browse files Browse the repository at this point in the history
  • Loading branch information
NSoiffer committed Aug 13, 2023
1 parent ba3fac3 commit 5158ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/globalPlugins/MathCAT/MathCAT.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ def __init__(self):
# super(MathCAT, self).__init__(*args, **kwargs)

try:
# IMPORTANT -- SetRulesDir must be the first call to libmathcat
# IMPORTANT -- SetRulesDir must be the first call to libmathcat besides GetVersion()
rules_dir = path.join( path.dirname(path.abspath(__file__)), "Rules")
log.info(f"MathCAT installed. Using rules dir: {rules_dir}")
log.info(f"MathCAT {libmathcat.GetVersion()} installed. Using rules dir: {rules_dir}")
libmathcat.SetRulesDir(rules_dir)
libmathcat.SetPreference("TTS", "SSML")
except Exception as e:
Expand Down

0 comments on commit 5158ea2

Please sign in to comment.