Skip to content

Commit ddb203f

Browse files
frostmingCopilot
andcommitted
fix: include default path for 'uv' executable search in _find_uv function
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Frost Ming <me@frostming.com>
1 parent e788104 commit ddb203f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/bub/builtin/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ def _find_uv() -> str:
128128
import shutil
129129
import sysconfig
130130

131+
default_path = Path.home() / ".local" / "bin"
132+
131133
bin_path = sysconfig.get_path("scripts")
132-
uv_path = shutil.which("uv", path=os.pathsep.join([bin_path, os.getenv("PATH", "")]))
134+
uv_path = shutil.which("uv", path=os.pathsep.join([bin_path, str(default_path), os.getenv("PATH", "")]))
133135
if uv_path is None:
134136
raise FileNotFoundError("uv executable not found in PATH or scripts directory.")
135137
return uv_path

0 commit comments

Comments
 (0)