}
def analyse(self) :
- self.mode = mode = self.getMode()
- print 'Mode :', mode
-
results = {}
- for name in self.POSSIBLE_ANALYSES[mode] :
- meth = getattr(self, name)
- results[name] = meth()
+ try :
+ self.mode = mode = self.getMode()
+ results['playingMode'] = mode
+ for name in self.POSSIBLE_ANALYSES[mode] :
+ meth = getattr(self, name)
+ results[name] = meth()
+ except :
+ pass
return results
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
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 :