OSDN Git Service

fix installer
[rec10/rec10-git.git] / rec10 / trunk / src / tv2ts.py
index f69551d..c6c1788 100644 (file)
@@ -101,7 +101,11 @@ def tv2b25ts(pout, ch, time):
             status.changeBSCSRecording(-1)
         else:
             status.changeTERecording(-1)
-    os.chmod(pout,0755)
+    if os.path.exists(pout):
+        try:
+            os.chmod(pout,0755)
+        except:
+            ""
 def b252tsmix(pin, pout):
     if not (os.path.exists(pout) and os.path.getsize(pin)>os.path.getsize(pout)*0.95 and os.path.getsize(pin)<os.path.getsize(pout)*1.05):
         exe=""