OSDN Git Service

stop using trunk or dist directory in rec10 project.
[rec10/rec10-git.git] / dist / trunk / rec10 / rec10d.py
diff --git a/dist/trunk/rec10/rec10d.py b/dist/trunk/rec10/rec10d.py
deleted file mode 100755 (executable)
index b0ce3af..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/python\r
-# coding: UTF-8\r
-# Rec10 TS Recording Tools\r
-# Copyright (C) 2009-2011 Yukikaze\r
-import os\r
-import os.path\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
-tmppath = configreader.getConfPath("tmp")+"/"\r
-if tmppath=="/":\r
-    tmppath=path\r
-if not os.path.exists(tmppath):\r
-    os.makedirs(tmppath)\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