]> git.phdru.name Git - xsetbg.git/commitdiff
Fix a bug: get xsetbg_dir
authorOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2014 16:26:48 +0000 (20:26 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2014 16:26:48 +0000 (20:26 +0400)
xsetbg_conf.py

index 05777324b9a1b62c8642ba0c4219ded96113cfc9..368667c9b02e9362dc2d66f9a5e934da1080dca1 100755 (executable)
@@ -20,7 +20,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')