This commit replaces uses of distutils.sysconfig's get_python_lib()
function with sysconfig's near-equivalent get_path() function to get the
directory for site-specific, platform-specific files. Unfortunately,
get_path() does not have a way to easily modify or strip the prefix
applied to the path like get_python_lib() does, so the code must
manually modify the path to get the same effect:
- First, the platlib path is retrieved from the get_path() call.
- Next, the default base that is used to form the pathlib path is
queried via the get_config_var('base') call.
- Next, the portion of the platlib path that matches the default base is
stripped, and any leading path separator remaining is stripped. This
fundamentally replicates the behavior of get_python_lib() with an empty
prefix (i.e., the prefix positional parameter is specified as '').
- If a different prefix is desired, then the os.path.join() function is
used to combine the new prefix with the stripped pathlib path, ensuring
that the platform-specific path separator is used in crafting the path.
|
||
|---|---|---|
| .. | ||
| debs | ||
| dissectors | ||
| gr-usrptest | ||
| kitchen_sink | ||
| mega_fft | ||
| nirio_programmer | ||
| uhd_dump | ||
| uhd_txrx_debug_prints | ||
| json_to_zbx_dsa_cal.py | ||
| package_source.sh | ||
| README.md | ||
| usrp_x3xx_fpga_jtag_programmer.sh | ||
USRP™ Tools
This folder contains tools that are useful for working with and/or debugging your USRP™ device. Tools in this directory are not part of UHD. They are either stand-alone programs or software to be used in third-party applications.
For UHD™ software tools, look in uhd/host/utils.
List of Tools
__chdr-dissector/__
This is a packet dissector for Wireshark. It allows you to view the details of a Compressed HeaDeR (CHDR) formatted-packet in Wireshark. The USRP™ B2xx and X3xx use the CHDR format.
__uhd_dump/__
This tool can be used with tcpdump to make sense of packet dumps from your
network-connected USRP™ device.
__usrp_x3xx_fpga_jtag_programmer.sh__
This tool is to be used with the USRP™ X300 and X310 devices. It allows you to
program the X3x0 FPGA via JTAG. Note that loading the FPGA image via JTAG does
not store the FPGA in the on-device flash storage. Thus, as soon as you
cycle power, the image will be lost. To permanently burn an FPGA image, please
refer to uhd/host/utils/usrp_x3xx_fpga_burner.
This tool requires that Xilinx iMPACT has been installed on your system.
__kitchen_sink__
This is a debugging tool designed to test and stress connections to USRP devices.