mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Cache exe lookups
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user