OSDN Git Service

fix installer.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 2 Apr 2010 04:03:27 +0000 (04:03 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 2 Apr 2010 04:03:27 +0000 (04:03 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@545 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/recdblist.py

index db71f64..d8ada8b 100644 (file)
@@ -75,11 +75,10 @@ def printutf8(unicode):
     print str
     logfname="/var/log/rec10"
     mode="a"
-    if not os.path.exists(logfname):
-        mode="w"
-    f=open(logfname,mode)
-    f.write(str+"\n")
-    f.close()
+    if os.path.exists(logfname):
+        f=open(logfname,mode)
+        f.write(str+"\n")
+        f.close()
 def addlog(tspath,txt,log_title):
     logo=tspath
     logo=logo.replace("_1.wav",".ts")