From 3efc3d076c94c60d2d25bbd1b412244c3ccf3a81 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Sun, 17 Sep 2023 19:40:06 +0300 Subject: [PATCH] - fix the utils_sevana.py --- src/utils_sevana.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/utils_sevana.py b/src/utils_sevana.py index 6a3ae4a..4ac3f9c 100644 --- a/src/utils_sevana.py +++ b/src/utils_sevana.py @@ -82,7 +82,9 @@ def load_config_and_licenses(server: str): def find_binaries(bin_directory: Path, license_server: str = None) -> bool: # Update path to pvqa/aqua-wb - global PVQA_CFG_PATH, PVQA_LIC_PATH, AQUA_LIC_PATH, PVQA_PATH, AQUA_PATH, PVQA_CMD, AQUA_CMD, SILER_PATH, SPEECH_DETECTOR_PATH + global PVQA_CFG_PATH, PVQA_LIC_PATH, AQUA_LIC_PATH, AQUA_CFG_PATH + global PVQA_PATH, AQUA_PATH, PVQA_CMD, AQUA_CMD + global SILER_PATH, SPEECH_DETECTOR_PATH # Find platform prefix platform_prefix = platform.system().lower() @@ -95,7 +97,7 @@ def find_binaries(bin_directory: Path, license_server: str = None) -> bool: AQUA_PATH = bin_directory / platform_prefix / AQUA_PATH AQUA_CFG_PATH = bin_directory / AQUA_CFG_PATH AQUA_LIC_PATH = bin_directory / AQUA_LIC_PATH - SILER_PATH = bin_directory / platform_prefix / SILER_PATH + # SILER_PATH = bin_directory / platform_prefix / SILER_PATH SPEECH_DETECTOR_PATH = bin_directory / platform_prefix / SPEECH_DETECTOR_PATH utils.log(f'Looking for binaries/licenses/configs at {bin_directory}...') @@ -123,9 +125,9 @@ def find_binaries(bin_directory: Path, license_server: str = None) -> bool: utils.log_error(f'Failed to find aqua-wb binary.') return False - if not SILER_PATH.exists(): - utils.log_error(f'Failed to find silence_eraser binary..') - return False + # if not SILER_PATH.exists(): + # utils.log_error(f'Failed to find silence_eraser binary..') + # return False if license_server is not None: AQUA_LIC_PATH = '"license://' + license_server + '"'