mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Look in ~/.local/bin preferentially
This commit is contained in:
parent
175ff4b955
commit
c1b7023e3a
1 changed files with 1 additions and 0 deletions
|
|
@ -546,6 +546,7 @@ def find_exe(name: str) -> Optional[str]:
|
|||
paths = system_paths_on_macos()
|
||||
else:
|
||||
paths = ['/usr/local/bin', '/opt/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin']
|
||||
paths.insert(0, os.path.expanduser('~/.local/bin'))
|
||||
path = os.pathsep.join(paths) + os.pathsep + os.defpath
|
||||
ans = shutil.which(name, path=path)
|
||||
return ans
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue