diff --git a/ivas_processing_scripts/audiotools/wrappers/bs1770.py b/ivas_processing_scripts/audiotools/wrappers/bs1770.py index a808b2e6ccb1bd36c53d112dd5a7125646b44f4d..a72398ed11c1ae7c15a06be607a9a00a8e8e9848 100755 --- a/ivas_processing_scripts/audiotools/wrappers/bs1770.py +++ b/ivas_processing_scripts/audiotools/wrappers/bs1770.py @@ -33,7 +33,6 @@ import copy import logging import re -import subprocess as sp from pathlib import Path from tempfile import TemporaryDirectory from typing import Optional, Tuple, Union @@ -84,9 +83,8 @@ def bs1770demo( binary = find_binary("bs1770demo") # checking if the new binary (with '-rms') is used - result = sp.run(str(binary), shell=True, stdout=sp.PIPE, stderr=sp.PIPE) - result_stdout = result.stdout.decode("utf-8") - if "-rms" not in result_stdout: + result_check = run([str(binary)], check=False) + if "-rms" not in result_check.stdout: raise RuntimeError( 'An bs1770demo executable without RMS support (cmdl option "-rms") was detected. Please update the bs1770demo executable. See bin/README.md for details.' )