aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/prefs.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-01-15 15:42:15 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-08 22:18:14 +0100
commit832cbe095ae5e851aadddce66e1510d33a4430f3 (patch)
tree72ce19679463547f074dea956249ad8d78cdc650 /mpm/python/usrp_mpm/prefs.py
parent44533fb035d4e9629d62f79a95ea9eb0487dcfef (diff)
downloaduhd-832cbe095ae5e851aadddce66e1510d33a4430f3.tar.gz
uhd-832cbe095ae5e851aadddce66e1510d33a4430f3.tar.bz2
uhd-832cbe095ae5e851aadddce66e1510d33a4430f3.zip
mpm: Use prefs API for periph manager
- Allow to set default args via config file - Read them from prefs API - override-db-pids uses the same APIs now ([overrides] section in config file, prefs API, and same dictionary as --default-args when used on the command line
Diffstat (limited to 'mpm/python/usrp_mpm/prefs.py')
-rw-r--r--mpm/python/usrp_mpm/prefs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/prefs.py b/mpm/python/usrp_mpm/prefs.py
index d244a0b42..8ed6f13ff 100644
--- a/mpm/python/usrp_mpm/prefs.py
+++ b/mpm/python/usrp_mpm/prefs.py
@@ -37,6 +37,9 @@ class _MPMPrefs(configparser.ConfigParser):
'log_level': MPM_DEFAULT_LOG_LEVEL,
'log_buf_size': MPM_DEFAULT_LOG_BUF_SIZE,
},
+ 'overrides': {
+ 'override_db_pids': '',
+ },
}
def __init__(self):