Implemented config file processing
authorEd Bartosh <eduard.bartosh@intel.com>
Sun, 11 Aug 2013 15:17:34 +0000 (18:17 +0300)
committerEduard Bartosh <eduard.bartosh@intel.com>
Tue, 13 Aug 2013 06:56:11 +0000 (23:56 -0700)
commite5ce4ed3104f84fecae02e3867d80a7d79fe6010
treedc37107a64f0cefcf0b33e995d39cf235e703d1f
parent23e81434023fd632dcd5d5f15d2c8f40da531b6f
Implemented config file processing

Configuration is taken from /etc/repa.conf and ~/.repa.conf, so it's
possible to specify system defaults in /etc/repa.conf and user-related
configuration options in ~/.repa.conf. ~/.repa.conf has higher priority
and any option from /etc/repa.conf can be reset in ~/.repa.conf

Configuration processing is implemented in a way that default values for
command line parameters are taken from configuration file(s).

Configuration section to use can be specified in command line too.

Fixes: #1141

Change-Id: I632f22674c282021983bc6a496ef1fccc0da3137
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5839
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
packaging/repa.spec
repa.conf [new file with mode: 0644]
repa/group.py
repa/list.py
repa/main.py
setup.py