From c1b7023e3a1379096073124e3ff7aa5678e5b3c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Dec 2020 11:50:11 +0530 Subject: [PATCH] Look in ~/.local/bin preferentially --- kitty/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/utils.py b/kitty/utils.py index eaf86f09f..ce22682d1 100644 --- a/kitty/utils.py +++ b/kitty/utils.py @@ -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