3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2011 Yukikaze
8 warnings.filterwarnings('ignore', "the sets module is deprecated")
12 path = str(os.path.dirname(os.path.abspath(__file__))) + "/"
13 tmppath = configreader.getConfPath("tmp")+"/"
16 if not os.path.exists(tmppath):
21 db = configreader.getConfDB("db")
23 dbn = configreader.getConfDB("mysql_dbname")
24 dbh = configreader.getConfDB("mysql_host")
25 dbu = configreader.getConfDB("mysql_user")
26 dbpwd = configreader.getConfDB("mysql_passwd")
27 dbport = int(configreader.getConfDB("mysql_port"))
28 rec10db = dbMySQL.DB_MySQL(dbname=dbn, host=dbh, user=dbu, passwd=dbpwd, port=dbport)
29 rec10db.new_in_status()
31 rec10db = dbSQLite.DB_SQLite(path + "ch.db")
32 if __name__ == "__main__":