]> git.phdru.name Git - m_librarian.git/blob - scripts/ml-initdb.py
0211187cb145a3acbce1af250bed6e4191aa73d1
[m_librarian.git] / scripts / ml-initdb.py
1 #! /usr/bin/env python
2
3 from m_librarian.db import init_db
4 from m_librarian.glst import import_glst
5
6 if __name__ == '__main__':
7     init_db()
8     old, new = import_glst()
9     if old:
10         print "Imported %d genres (ignored %d existing)" % (new, old)
11     else:
12         print "Imported %d genres" % new