OSDN Git Service

add tsid channel information for complete BS support.
[rec10/rec10-git.git] / rec10 / trunk / src / rec10d.py
index e89e75f..b0ce3af 100644 (file)
@@ -3,13 +3,18 @@
 # Rec10 TS Recording Tools\r
 # Copyright (C) 2009-2011 Yukikaze\r
 import os\r
-\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