Add cache on executables-in

This commit is contained in:
Danny Sepler 2020-09-18 00:04:26 -04:00
parent f6e8910ce5
commit 456dbfb8bf
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,23 @@
**Added:**
* Added cache on finding executable files, to speedup command-not-found suggestions
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -802,6 +802,7 @@ def _executables_in_windows(path):
return
# @functools.lru_cache(128)
def executables_in(path):
"""Returns a generator of files in path that the user could execute. """
if ON_WINDOWS: