aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/periph_manager/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/base.py')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py
index b698f661b..1206289b9 100644
--- a/mpm/python/usrp_mpm/periph_manager/base.py
+++ b/mpm/python/usrp_mpm/periph_manager/base.py
@@ -140,6 +140,15 @@ class PeriphManagerBase(object):
mboard_info -- Dictionary; motherboard info
device_args -- List of dictionaries; daughterboard info
"""
+ # Try to add the MPM Git hash and version
+ try:
+ from usrp_mpm import __version__, __githash__
+ version_string = __version__
+ if len(__githash__):
+ version_string += "-g" + __githash__
+ except ImportError:
+ version_string = ""
+ mboard_info["mpm_version"] = version_string
return mboard_info
@staticmethod