Skip to content

Commit

Permalink
fix/version_string (#20)
Browse files Browse the repository at this point in the history
* fix/version_string

* Update __init__.py
  • Loading branch information
JarbasAl authored Jan 31, 2024
1 parent 2a1a8a2 commit 2f8e18f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ovos_gui_plugin_shell_companion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
from ovos_bus_client.client import MessageBusClient
from ovos_bus_client import Message
from ovos_utils import network_utils
from ovos_utils.fingerprinting import get_mycroft_version
from ovos_utils.gui import GUIInterface
from ovos_bus_client.apis.gui import GUIInterface
from ovos_utils.log import LOG
from ovos_config.config import Configuration

Expand Down Expand Up @@ -190,7 +189,10 @@ def display_advanced_config_groups(self, message=None):

def build_initial_about_page_data(self):
uname_info = platform.uname()
version = get_mycroft_version() or "unknown"
try:
from ovos_core.version import OVOS_VERSION_STR as version
except ImportError:
version = "unknown"
self.about_page_data.append({"display_key": "Kernel Version", "display_value": uname_info[2]})
self.about_page_data.append({"display_key": "Core Version", "display_value": version})
self.about_page_data.append({"display_key": "Python Version", "display_value": platform.python_version()})
Expand Down

0 comments on commit 2f8e18f

Please sign in to comment.