]> git.phdru.name Git - xsetbg.git/blobdiff - xsetbg.py
Calculate xsetbg_dir using __file__ instead of absolute path.
[xsetbg.git] / xsetbg.py
index 717d50773255824df51b06c844e99ab948e4cc28..c57e56af2447a554a9936e6d5fd119f2d1eb3da4 100755 (executable)
--- a/xsetbg.py
+++ b/xsetbg.py
@@ -12,7 +12,7 @@ __revision__ = "$Id$"[5:-2]
 __date__ = "$Date$"[7:-2]
 
 __author__ = "Oleg Broytman <phd@phd.pp.ru>"
-__copyright__ = "Copyright (C) 2000-2009 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2010 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 
@@ -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()