Signed-off-by: John Mulligan <jmulligan@redhat.com>
Pair-programmed-with: Adam King <adking@redhat.com>
Co-authored-by: Adam King <adking@redhat.com>
# copied from distutils
-def find_executable(executable: str, path: Optional[str] = None) -> Optional[str]:
+def find_executable(
+ executable: str, path: Optional[str] = None
+) -> Optional[str]:
"""Tries to find 'executable' in the directories listed in 'path'.
A string listing directories separated by 'os.pathsep'; defaults to
os.environ['PATH']. Returns the complete filename or None if not found.