-#!/usr/bin/python
-# coding: UTF-8
-# Rec10 TS Recording Tools
-# Copyright (C) 2009-2010 Yukikaze
-import os
-
-import warnings
-warnings.filterwarnings('ignore', "the sets module is deprecated")
-import configreader
-import dbMySQL
-import timerec
-import recdblist
-path = str(os.path.dirname(os.path.abspath(__file__))) + "/"
-global rec10db
-def main():
- timerec.task()
-db = configreader.getdbpath("db")
-if db == "MySQL":
- dbn = configreader.getdbpath("mysql_dbname")
- dbh = configreader.getdbpath("mysql_host")
- dbu = configreader.getdbpath("mysql_user")
- dbpwd = configreader.getdbpath("mysql_passwd")
- dbport = int(configreader.getdbpath("mysql_port"))
- rec10db = dbMySQL.DB_MySQL(dbname=dbn, host=dbh, user=dbu, passwd=dbpwd, port=dbport)
- rec10db.new_in_status()
-else:
- rec10db = dbSQLite.DB_SQLite(path + "ch.db")
-try:
- recdblist.log_level_now=int(configreader.getlog("log_level"))
- recdblist.verbose_level_now=int(configreader.getlog("verbose_level"))
-except:
- ""
-if __name__ == "__main__":
- main()
-
+#!/usr/bin/python\r
+# coding: UTF-8\r
+# Rec10 TS Recording Tools\r
+# Copyright (C) 2009-2010 Yukikaze\r
+import os\r
+\r
+import warnings\r
+warnings.filterwarnings('ignore', "the sets module is deprecated")\r
+import configreader\r
+import dbMySQL\r
+import timerec\r
+path = str(os.path.dirname(os.path.abspath(__file__))) + "/"\r
+global rec10db\r
+def main():\r
+ timerec.task()\r
+db = configreader.getConfDB("db")\r
+if db == "MySQL":\r
+ dbn = configreader.getConfDB("mysql_dbname")\r
+ dbh = configreader.getConfDB("mysql_host")\r
+ dbu = configreader.getConfDB("mysql_user")\r
+ dbpwd = configreader.getConfDB("mysql_passwd")\r
+ dbport = int(configreader.getConfDB("mysql_port"))\r
+ rec10db = dbMySQL.DB_MySQL(dbname=dbn, host=dbh, user=dbu, passwd=dbpwd, port=dbport)\r
+ rec10db.new_in_status()\r
+else:\r
+ rec10db = dbSQLite.DB_SQLite(path + "ch.db")\r
+if __name__ == "__main__":\r
+ main()\r
+\r