PEP8: Fix whitespace
[openblackhole/openblackhole-enigma2.git] / tools / host_tools / FormatConverter / lamedb2satxml.py
1 #!/usr/bin/python
2 from datasource import genericdatasource
3 from satxml import satxml
4 from lamedb import lamedb
5
6 import sys
7
8 if len(sys.argv) != 3:
9         print "usage: %s <lamedb> <satellites.xml>" % sys.argv[0]
10         sys.exit()
11
12 gen = genericdatasource()
13 db = lamedb(sys.argv[1])
14 xml = satxml(sys.argv[2])
15
16 db.read()
17 gen.source = db
18 gen.destination = xml
19 gen.docopymerge(action = "copy")
20 xml.write()