]> git.phdru.name Git - xsetbg.git/blobdiff - xsetbg_conf.py
Open config in xsetbg_conf.py, open db in xsetbg_db.py
[xsetbg.git] / xsetbg_conf.py
diff --git a/xsetbg_conf.py b/xsetbg_conf.py
new file mode 100755 (executable)
index 0000000..a77d678
--- /dev/null
@@ -0,0 +1,18 @@
+#! /usr/bin/env python
+"""XSetBg config
+
+"""
+
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2014 PhiloSoft Design"
+__license__ = "GNU GPL"
+
+__all__ = ['xsetbg_conf']
+
+import os
+from ConfigParser import SafeConfigParser
+
+xsetbg_dir = os.path.dirname(os.path.abspath(__file__))
+
+xsetbg_conf = SafeConfigParser()
+xsetbg_conf.read(os.path.join(xsetbg_dir, 'xsetbg.conf'))