Quelques adaptations pour que ça compile avec Py2Exe.
[minwii.git] / src / minwii / logapp.py
index 16be558..176d179 100755 (executable)
@@ -9,10 +9,11 @@ $URL$
 from Tkinter import *
 import tkFileDialog
 from glob import glob
+import os
 from os.path import join as pjoin
 from os.path import basename
 from os.path import getsize
-from loganalyse import LogFileAnalyser
+from minwii.loganalyse import LogFileAnalyser
 from pprint import pprint
 
 class Application(Frame) :
@@ -77,6 +78,7 @@ class Application(Frame) :
         while self.logFiles :
             f = self.logFiles.pop()
             if not getsize(f) :
+                os.remove(f)
                 continue
             # TODO : vérifier qu'il existe des événements
             else :