Example #1
0
    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
Example #2
0
 def which(self, executable, executable_search_paths=None):
     return which(executable,
                  executable_search_paths=executable_search_paths)