diff --git a/slither/tools/doctor/checks/paths.py b/slither/tools/doctor/checks/paths.py index d388847ef4..c18051679d 100644 --- a/slither/tools/doctor/checks/paths.py +++ b/slither/tools/doctor/checks/paths.py @@ -48,8 +48,8 @@ def check_path_config(name: str) -> Tuple[bool, Optional[Path], List[Path]]: binary_here = False if binary_path is not None: - binary_path = Path(binary_path) - this_code = Path(__file__) + binary_path = Path(binary_path).resolve() + this_code = Path(__file__).resolve() this_binary = list(filter(lambda x: path_is_relative_to(this_code, x[1]), possible_paths)) binary_here = len(this_binary) > 0 and all( path_is_relative_to(binary_path, script) for script, _ in this_binary