- fix the utils_sevana.py
This commit is contained in:
parent
e512f7a643
commit
3efc3d076c
|
|
@ -82,7 +82,9 @@ def load_config_and_licenses(server: str):
|
||||||
|
|
||||||
def find_binaries(bin_directory: Path, license_server: str = None) -> bool:
|
def find_binaries(bin_directory: Path, license_server: str = None) -> bool:
|
||||||
# Update path to pvqa/aqua-wb
|
# 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
|
# Find platform prefix
|
||||||
platform_prefix = platform.system().lower()
|
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_PATH = bin_directory / platform_prefix / AQUA_PATH
|
||||||
AQUA_CFG_PATH = bin_directory / AQUA_CFG_PATH
|
AQUA_CFG_PATH = bin_directory / AQUA_CFG_PATH
|
||||||
AQUA_LIC_PATH = bin_directory / AQUA_LIC_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
|
SPEECH_DETECTOR_PATH = bin_directory / platform_prefix / SPEECH_DETECTOR_PATH
|
||||||
|
|
||||||
utils.log(f'Looking for binaries/licenses/configs at {bin_directory}...')
|
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.')
|
utils.log_error(f'Failed to find aqua-wb binary.')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not SILER_PATH.exists():
|
# if not SILER_PATH.exists():
|
||||||
utils.log_error(f'Failed to find silence_eraser binary..')
|
# utils.log_error(f'Failed to find silence_eraser binary..')
|
||||||
return False
|
# return False
|
||||||
|
|
||||||
if license_server is not None:
|
if license_server is not None:
|
||||||
AQUA_LIC_PATH = '"license://' + license_server + '"'
|
AQUA_LIC_PATH = '"license://' + license_server + '"'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue