]> git.phdru.name Git - xsetbg.git/commitdiff
Calculate xsetbg_dir using __file__ instead of absolute path.
authorOleg Broytman <phd@phdru.name>
Tue, 9 Feb 2010 15:59:20 +0000 (15:59 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 9 Feb 2010 15:59:20 +0000 (15:59 +0000)
git-svn-id: file:///home/phd/archive/SVN/xsetbg/trunk@38 143022c7-580b-0410-bae3-87f2bf5d3141

xsetbg.py

index 86462dda4da085b847d3210a4a2793037e1ab892..c57e56af2447a554a9936e6d5fd119f2d1eb3da4 100755 (executable)
--- 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()