3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2010 Yukikaze
8 warnings.filterwarnings('ignore', "the sets module is deprecated")
12 path = str(os.path.dirname(os.path.abspath(__file__))) + "/"
16 db = configreader.getdbpath("db")
18 dbn = configreader.getdbpath("mysql_dbname")
19 dbh = configreader.getdbpath("mysql_host")
20 dbu = configreader.getdbpath("mysql_user")
21 dbpwd = configreader.getdbpath("mysql_passwd")
22 dbport = int(configreader.getdbpath("mysql_port"))
23 rec10db = dbMySQL.DB_MySQL(dbname=dbn, host=dbh, user=dbu, passwd=dbpwd, port=dbport)
24 rec10db.new_in_status()
26 rec10db = dbSQLite.DB_SQLite(path + "ch.db")
27 if __name__ == "__main__":