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(