diff options
| author | Martin Braun <martin.braun@ettus.com> | 2020-10-12 12:22:00 +0200 |
|---|---|---|
| committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-10-16 14:58:15 -0500 |
| commit | 7ee106187e1d0991e7ae79abd905a79dc5760b5f (patch) | |
| tree | 4cf445e5b170817692567120e8506e20f5afb878 /host/python/CMakeLists.txt | |
| parent | 0167ad7608adb170970458b19735738808f0c5c8 (diff) | |
| download | uhd-7ee106187e1d0991e7ae79abd905a79dc5760b5f.tar.gz uhd-7ee106187e1d0991e7ae79abd905a79dc5760b5f.tar.bz2 uhd-7ee106187e1d0991e7ae79abd905a79dc5760b5f.zip | |
python: Add access to the property_tree from Python
Example:
>>> usrp = uhd.usrp.multi_usrp("")
>>> tree = usrp.get_tree()
>>> print(tree.access_int("/name").get())
Diffstat (limited to 'host/python/CMakeLists.txt')
| -rw-r--r-- | host/python/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/python/CMakeLists.txt b/host/python/CMakeLists.txt index d4417903d..1e9fefa43 100644 --- a/host/python/CMakeLists.txt +++ b/host/python/CMakeLists.txt @@ -31,6 +31,7 @@ execute_process( # Build pyuhd library add_library(pyuhd SHARED pyuhd.cpp + ${CMAKE_SOURCE_DIR}/lib/property_tree_python.cpp ${CMAKE_SOURCE_DIR}/lib/usrp/multi_usrp_python.cpp ) # python expects extension modules with a particular suffix |
