def on_label_device_missing_info_link_activated(self, link: str): if link == "health_check": info = ExtensionHelper.perform_health_check() info += "\n" + BackendHandler.perform_soundcard_health_check() if util.get_shared_library_path(): if sys.platform == "win32": info += "\n\n[INFO] Used DLLs from " + util.get_shared_library_path() else: info += "\n\n[INFO] Used shared libraries from " + util.get_shared_library_path() d = util.create_textbox_dialog(info, "Health check for native extensions", self) d.show()
def test_native_backends_installed(self): from urh.util import util if not util.get_shared_library_path(): logger.info("Shared library dir not found, skipping check of native device extensions") return util.set_shared_library_path() # noinspection PyUnresolvedReferences from urh.dev.native.lib import airspy # noinspection PyUnresolvedReferences from urh.dev.native.lib import bladerf # noinspection PyUnresolvedReferences from urh.dev.native.lib import hackrf # noinspection PyUnresolvedReferences from urh.dev.native.lib import rtlsdr # noinspection PyUnresolvedReferences from urh.dev.native.lib import limesdr # noinspection PyUnresolvedReferences from urh.dev.native.lib import plutosdr # noinspection PyUnresolvedReferences from urh.dev.native.lib import usrp if sys.platform != "darwin": # noinspection PyUnresolvedReferences from urh.dev.native.lib import sdrplay self.assertTrue(True)