Skip to content

Commit 76f5e7d

Browse files
author
Mateusz
committed
Fix Gemini command resolution on Linux CI
1 parent e5a87ad commit 76f5e7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/connectors/gemini_base/command_resolution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
_WINDOWS_BATCH_SUFFIXES = {".bat", ".cmd"}
1111
_WINDOWS_GEMINI_CANDIDATES = ("gemini.cmd", "gemini.exe", "gemini.bat", "gemini")
12+
_HOST_PATH_CLASS = type(Path())
1213

1314

1415
def _is_path_like(candidate: str) -> bool:
@@ -24,7 +25,7 @@ def _resolve_specific_executable(candidate: str) -> str | None:
2425
return None
2526

2627
if _is_path_like(normalized):
27-
path = Path(normalized).expanduser()
28+
path = _HOST_PATH_CLASS(normalized).expanduser()
2829
if path.is_file():
2930
return str(path.resolve())
3031
return None

0 commit comments

Comments
 (0)