From a5b87ab7c4a6834acc7587ffc4a769854b9d48b4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 30 Mar 2018 14:19:35 -0700 Subject: mpm: cmake: Add git hash and version info to Python module Reviewed-by: Brent Stapleton --- mpm/python/usrp_hwd.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mpm/python/usrp_hwd.py') diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py index 0b2cd1ecb..d04d04927 100755 --- a/mpm/python/usrp_hwd.py +++ b/mpm/python/usrp_hwd.py @@ -170,6 +170,10 @@ def main(): log = mpm.get_main_logger( log_default_delta=args.verbose-args.quiet ).getChild('main') + version_string = mpm.__version__ + if len(mpm.__githash__): + version_string += "-g" + mpm.__githash__ + log.info("Launching USRP/MPM, version: %s", version_string) if args.override_db_pids is not None: log.warning('Overriding daughterboard PIDs!') args.default_args['override_db_pids'] = args.override_db_pids -- cgit v1.2.3