]> git.phdru.name Git - xsetbg.git/blobdiff - xsetbg_db.py
Fix a bug: open xsetbg.py with full path
[xsetbg.git] / xsetbg_db.py
old mode 100755 (executable)
new mode 100644 (file)
index d98e1b5..c820c6d
@@ -1,4 +1,3 @@
-#! /usr/bin/env python
 """XSetBg database
 
 """
@@ -10,10 +9,11 @@ __license__ = "GNU GPL"
 __all__ = ['xsetbg_db']
 
 import anydbm
+import os
 import shelve
 from xsetbg_conf import xsetbg_conf
 
-xsetbg_db_path = xsetbg_conf.get('xsetbg', 'database')
+xsetbg_db_path = os.path.expanduser(xsetbg_conf.get('xsetbg', 'database'))
 
 try:
     xsetbg_db = shelve.open(xsetbg_db_path, 'r')