self.resultsFrame = None
# debug
- self.chooseDirDialog(dir='/Users/pinbe/minwii_logs')
+ #self.chooseDirDialog(dir='/Users/pinbe/minwii_logs')
def configureStretching(self) :
top=self.winfo_toplevel()
def _cleanupJunkFiles(self) :
files = []
+ junk = []
while self.logFiles :
f = self.logFiles.pop()
if not getsize(f) :
- os.remove(f)
+ junk.append(f)
continue
else :
lfa = LogFileAnalyser(f)
if lfa.getLastEventTicks() is None :
- os.remove(f)
+ junk.append(f)
continue
files.append(f)
+ for f in junk :
+ os.remove(f)
+
self.logFiles = files