Cache exe lookups
This commit is contained in:
parent
7eba3b6cbc
commit
af94e07618
1 changed files with 1 additions and 0 deletions
|
|
@ -538,6 +538,7 @@ def add_from_file(x: str) -> None:
|
|||
return entries
|
||||
|
||||
|
||||
@lru_cache
|
||||
def find_exe(name: str) -> Optional[str]:
|
||||
import shutil
|
||||
ans = shutil.which(name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue