]> git.phdru.name Git - xsetbg.git/blobdiff - xsetbg_conf.py
Feat: Remove DBus-related scripts
[xsetbg.git] / xsetbg_conf.py
index 05777324b9a1b62c8642ba0c4219ded96113cfc9..677b5371e38ea5cf107890520b730e8633d009e8 100755 (executable)
@@ -3,15 +3,11 @@
 
 """
 
-__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2014 PhiloSoft Design"
-__license__ = "GNU GPL"
-
-__all__ = ['xsetbg_conf']
-
 import os
 from ConfigParser import SafeConfigParser
 
+__all__ = ['xsetbg_conf']
+
 config_dirs = []
 if 'XDG_CONFIG_HOME' in os.environ:
     config_dirs.append(os.environ['XDG_CONFIG_HOME'])
@@ -20,7 +16,9 @@ if 'XDG_CONFIG_DIRS' in os.environ:
 home_config = os.path.expanduser('~/.config')
 if home_config not in config_dirs:
     config_dirs.append(home_config)
-config_dirs.append(os.path.dirname(os.path.abspath(__file__)))
+
+xsetbg_dir = os.path.dirname(os.path.abspath(__file__))
+config_dirs.append(xsetbg_dir)
 
 for d in config_dirs:
     xsetbg_conf_file = os.path.join(d, 'xsetbg.conf')
@@ -32,5 +30,5 @@ else:
     raise RuntimeError("Cannot find xsetbg.conf; searched %s", config_dirs)
 
 if __name__ == '__main__':
-    print "Config dirs:", config_dirs
-    print "Config file:", xsetbg_conf_file
+    print("Config dirs:", config_dirs)
+    print("Config file:", xsetbg_conf_file)