From: Oleg Broytman Date: Sun, 9 Mar 2014 16:26:48 +0000 (+0400) Subject: Fix a bug: get xsetbg_dir X-Git-Tag: v4.1.0~1 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=62e1582b16651a19a941b7db643fd8771f35c051;p=xsetbg.git Fix a bug: get xsetbg_dir --- 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')