From a2b7af9ad19a3bce01a9bbaf280ed68dd2fd1c5d Mon Sep 17 00:00:00 2001 From: Hunter Jozwiak Date: Thu, 30 Jan 2025 17:15:01 -0500 Subject: [PATCH] Update the cli to reflect the version. --- src/fenrirscreenreader/cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/cli.py b/src/fenrirscreenreader/cli.py index 40dc939a..eaf7a0b7 100644 --- a/src/fenrirscreenreader/cli.py +++ b/src/fenrirscreenreader/cli.py @@ -8,14 +8,15 @@ import sys import inspect import argparse from daemonize import Daemonize +from . import fenrirVersion # Get the fenrir installation path fenrirPath = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe())))) -if not fenrirPath in sys.path: +if fenrirPath not in sys.path: sys.path.append(fenrirPath) from .core import fenrirManager -from . import fenrirVersion + def create_argument_parser(): """Create and return the argument parser for Fenrir""" @@ -26,7 +27,7 @@ def create_argument_parser(): argumentParser.add_argument( '-v', '--version', action='version', - version=f'Fenrir screen reader version {fenrirVersion.version}-{fenrirVersion.codeName}', + version=f'Fenrir screen reader version {fenrirVersion}', help='Show version information and exit' ) argumentParser.add_argument(