diff --git a/test_runner.py b/test_runner.py index 35539225b..5992f113a 100644 --- a/test_runner.py +++ b/test_runner.py @@ -21,12 +21,14 @@ # Windows doesn't like / in paths, so we need to convert to \ +# If we're on Windows, convert to Windows path, +# and if we're not on Windows, just return the path. def convert_to_windows_path(path: Path) -> Path: - # If we're on Windows, convert to Windows path, and if we're not on Windows, just return the path. if path.is_absolute() and path.drive: return Path(path.drive + path.as_posix().replace("/", "\\")) return path + BANDERSNATCH_EXE = Path( which("bandersnatch") or which("bandersnatch.exe") or "bandersnatch" )