From c60f3eedbf9451dea7e6f505d8795d6da25164f7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 9 Feb 2010 15:59:20 +0000 Subject: [PATCH] Calculate xsetbg_dir using __file__ instead of absolute path. git-svn-id: file:///home/phd/archive/SVN/xsetbg/trunk@38 143022c7-580b-0410-bae3-87f2bf5d3141 --- xsetbg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xsetbg.py b/xsetbg.py index 86462dd..c57e56a 100755 --- a/xsetbg.py +++ b/xsetbg.py @@ -27,7 +27,7 @@ def error(error_str, error_code=1): from ConfigParser import SafeConfigParser -xsetbg_dir = os.path.join(os.environ["HOME"], "lib", "xsetbg") +xsetbg_dir = os.path.dirname(os.path.abspath(__file__)) os.chdir(xsetbg_dir) config = SafeConfigParser() -- 2.39.2