Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
host: utils: Fixed python script paths under utils for windows
When uhd_usrp_probe is executed with incompatible UHD and FPGA images, we get the expected incompat error. The problem is that on windows, this error messages prints an incorrect file path to uhd_images_downloader.py. It mentions folder "bin" but the python script is located under "lib". For example: current behavior "C:\Program Files\UHD\bin\uhd\utils\uhd_images_downloader.py" expected behavior "C:\Program Files\UHD\lib\uhd\utils\uhd_images_downloader.py" This fix is addressed by updating find_utility() function. Since, the dll in windows is present under /bin, the get_lib_path() returns this path and not the /lib path. To get the correct path, get_lib_path() is replaced by get_pkg_path() and the rest of the file path is contructed using /lib/.
- Loading branch information