mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
python: fixed warning when uhd.dll was not found
This fixes the silently fail of import uhd when UHD_LIBRARY_PATH, UHD_PKG_PATH was not set and UHD_INSTALL_PATH points to an invalid directory
This commit is contained in:
parent
e82dcd6518
commit
5ad0d3c353
@ -48,7 +48,7 @@ if os.name == "nt":
|
||||
"the UHD binary installation and the UHD Python module to the exact same version "
|
||||
"by upgrading the older component."
|
||||
)
|
||||
else:
|
||||
if not uhd_dll_dir:
|
||||
print(
|
||||
f"WARNING: Failed to add {uhd_dll_name} path to DLL search, module may not import properly, "
|
||||
"version check skipped.\nPlease ensure UHD_PKG_DIR (binary installation) is set correctly. "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user