From af94e076182b9f30f45673c1a2fa3d5566691032 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 4 Feb 2021 11:36:59 +0530 Subject: [PATCH] Cache exe lookups --- kitty/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/utils.py b/kitty/utils.py index 7c2c35658..f9e7593a6 100644 --- a/kitty/utils.py +++ b/kitty/utils.py @@ -538,6 +538,7 @@ def system_paths_on_macos() -> List[str]: return entries +@lru_cache def find_exe(name: str) -> Optional[str]: import shutil ans = shutil.which(name)