if 'XDG_CACHE_HOME' in os.environ:
db_dirs.append(os.environ['XDG_CACHE_HOME'])
home_cache = os.path.expanduser('~/.cache')
if 'XDG_CACHE_HOME' in os.environ:
db_dirs.append(os.environ['XDG_CACHE_HOME'])
home_cache = os.path.expanduser('~/.cache')
- db_file = os.path.join(d, 'xsetbg.db')
- if os.path.exists(db_file):
+ xsetbg_db_path = os.path.join(d, 'xsetbg.db')
+ if os.path.exists(xsetbg_db_path):
if __name__ == '__main__':
print "DB dirs:", db_dirs
if __name__ == '__main__':
print "DB dirs:", db_dirs