From 5158ea249fe97f741a6edc5cb15ebaac59744322 Mon Sep 17 00:00:00 2001 From: NSoiffer Date: Sun, 13 Aug 2023 15:49:12 +0100 Subject: [PATCH] Add version number to startup log message --- addon/globalPlugins/MathCAT/MathCAT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/globalPlugins/MathCAT/MathCAT.py b/addon/globalPlugins/MathCAT/MathCAT.py index bbdba65..48e357d 100644 --- a/addon/globalPlugins/MathCAT/MathCAT.py +++ b/addon/globalPlugins/MathCAT/MathCAT.py @@ -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: