- fix the problem with the

This commit is contained in:
2023-08-19 14:10:57 +03:00
parent fd57047197
commit 0c5652f98a
6 changed files with 102 additions and 75 deletions

View File

@@ -13,6 +13,7 @@ import urllib
from pathlib import Path
from colorama import Fore, Style
from utils_cache import InfoCache
PVQA_CMD = "{pvqa} --license {pvqa_lic} --config {pvqa_cfg} --mode analysis --channel 0 " \
"--report {output} --input {input} --cut-begin {cut_begin} --cut-end {cut_end}"
@@ -77,7 +78,7 @@ def load_config_and_licenses(server: str):
load_file(utils.join_host_and_path(server, '/deploy/aqua-wb.lic'), AQUA_LIC_PATH)
def find_binaries(directory: str, license_server: str = None):
def find_binaries(bin_directory: Path, license_server: str = None):
# 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
@@ -86,8 +87,6 @@ def find_binaries(directory: str, license_server: str = None):
if utils.is_raspberrypi():
platform_prefix = 'rpi'
bin_directory = Path(directory)
PVQA_PATH = bin_directory / platform_prefix / PVQA_PATH
PVQA_LIC_PATH = bin_directory / PVQA_LIC_PATH
PVQA_CFG_PATH = bin_directory / PVQA_CFG_PATH