From 832cbe095ae5e851aadddce66e1510d33a4430f3 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 15 Jan 2018 15:42:15 -0800 Subject: 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 --- mpm/python/usrp_mpm/prefs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mpm/python/usrp_mpm/prefs.py') 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): -- cgit v1.2.3