Commit 9bf05375 authored by bayers's avatar bayers
Browse files

make sure the check for the eid-xor binary also works on Windows

parent fffc0835
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -546,7 +546,10 @@ def runner_setup(runner, args):

    if "fer_file" in args.keys() or "ber_file" in args.keys():
        # assert that the eid-xor tool is there
        eid_xor_path = os.path.join(runner.config["utilPath"], "eid-xor")
        bin_ext=""
        if platform.system() == "Windows":
            bin_ext=".exe"
        eid_xor_path = os.path.join(runner.config["utilPath"], "".join(["eid-xor", bin_ext]))
        if not os.path.isfile(eid_xor_path):
            raise FileNotFoundError(f"Could not find {eid_xor_path} (needed for error pattern insertion)")