Cache exe lookups
This commit is contained in:
parent
7eba3b6cbc
commit
af94e07618
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user