Commit d2f8191c authored by Jan Kiene's avatar Jan Kiene
Browse files

make check for binary work for str and Path objects

parent 1c6abb84
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@
#

import logging
import os.path
from pathlib import Path
from typing import Optional, Union

@@ -75,7 +74,7 @@ def validate_network_simulator(
            "The network simulator binary was not found! Please check the configuration."
        )
    if error_pattern is not None:
        if not os.path.exists(os.path.realpath(error_pattern)):
        if not Path(error_pattern).exists():
            raise FileNotFoundError(
                f"The network simulator error profile file {error_pattern} was not found! Please check the configuration."
            )