From: Oleg Broytman Date: Tue, 9 Feb 2010 15:59:20 +0000 (+0000) Subject: Calculate xsetbg_dir using __file__ instead of absolute path. X-Git-Tag: v4.0.0~30 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c60f3eedbf9451dea7e6f505d8795d6da25164f7;p=xsetbg.git 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 --- 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()