def _which(self): exec_paths = [] for executable in [executable for executable in self.executables if executable is not None]: paths = which(executable, executable_search_paths=self.executable_search_paths) exec_paths.extend(paths) if not exec_paths: raise ValueError( "Path resolution for runtime: {} of binary: " "{} was not successful".format(self.runtime, self.binary) ) return exec_paths
def which(self, executable, executable_search_paths=None): return which(executable, executable_search_paths=executable_search_paths)