Collected all the local position stuff so it's specified once in uhd_modes.py.

Should probably add in a command-line parameter to specify this.
This commit is contained in:
Nick Foster
2010-10-23 18:00:58 -07:00
parent 0d4194ef84
commit 4d93b8f821
7 changed files with 21 additions and 11 deletions

View File

@@ -25,7 +25,8 @@ import modes_parse
import sqlite3
class modes_output_sql(modes_parse.modes_parse):
def __init__(self, filename):
def __init__(self, mypos, filename):
modes_parse.modes_parse.__init__(self, mypos)
#create the database
self.db = sqlite3.connect(filename)
#now execute a schema to create the tables you need