def _discoverVersion(process): if process.executablePath: use_ld_library_path = not shell.isWinOs() cmd = GetKernelVersionInfo(process.executablePath, use_ld_library_path) return sap_discoverer_by_shell.execute_cmd(shell, cmd)
def getVersionInfo(self, shell, bin_path): cmd = self.get_version_cmd(bin_path) if not shell.isWinOs(): self.setLDLibraryPath(shell, bin_path) return execute_cmd(shell, cmd)