summaryrefslogtreecommitdiff
path: root/voctocore/lib
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-08-22 19:11:47 +0200
committerMaZderMind <peter@mazdermind.de>2014-08-22 19:11:47 +0200
commit96c87b85f24a42329f508f4b8f7392808b747693 (patch)
treea37520ece9ae1d830688b1432b10eef2d78d39b4 /voctocore/lib
parent60176b4e7be9dcccfd3164b7a4ac4019c7a5da8e (diff)
add config & config reader
Diffstat (limited to 'voctocore/lib')
-rw-r--r--voctocore/lib/config.py9
1 files changed, 9 insertions, 0 deletions
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')
+])