From 96c87b85f24a42329f508f4b8f7392808b747693 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 22 Aug 2014 19:11:47 +0200 Subject: add config & config reader --- voctocore/lib/config.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 voctocore/lib/config.py (limited to 'voctocore/lib') diff --git a/voctocore/lib/config.py b/voctocore/lib/config.py new file mode 100644 index 0000000..b4c64aa --- /dev/null +++ b/voctocore/lib/config.py @@ -0,0 +1,9 @@ +import os.path +from configparser import SafeConfigParser + +Config = SafeConfigParser() +Config.read([ + 'default-config.ini', + '/etc/voctomix.ini', + os.path.expanduser('~/.voctomix.ini') +]) -- cgit v1.2.3