]> git.phdru.name Git - xsetbg.git/blob - dump_db.py
Expand tilde in the database path
[xsetbg.git] / dump_db.py
1 #! /usr/bin/env python
2 """Dump the DB sorted by date
3
4 This file is a part of XSetBg.
5
6 """
7
8 __author__ = "Oleg Broytman <phd@phdru.name>"
9 __copyright__ = "Copyright (C) 2006-2014 PhiloSoft Design"
10 __license__ = "GNU GPL"
11
12 from operator import itemgetter
13 from xsetbg_db import xsetbg_db
14
15 for key, value in sorted(xsetbg_db.items(), key=itemgetter(1), reverse=1):
16    if key.startswith('/'):
17       print value, key
18 xsetbg_db.close()