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