OSDN Git Service

fix installer
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 17 Feb 2012 04:25:48 +0000 (04:25 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 17 Feb 2012 04:25:48 +0000 (04:25 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@918 4e526526-5e11-4fc0-8910-f8fd03428081

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)
             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=""
 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=""