From 62e1582b16651a19a941b7db643fd8771f35c051 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Mar 2014 20:26:48 +0400 Subject: [PATCH] Fix a bug: get xsetbg_dir --- xsetbg_conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xsetbg_conf.py b/xsetbg_conf.py index 0577732..368667c 100755 --- a/xsetbg_conf.py +++ b/xsetbg_conf.py @@ -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') -- 2.39.5