Commit 1b16af5c authored by Anika Treffehn's avatar Anika Treffehn
Browse files

Merge branch 'fix_issue_with_spaces_in_path_names' into 'main'

changed run call in bs1770demo

See merge request !135
parents 6e3a503a f12333df
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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.'
        )