X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=iramuteq.py;h=20db7548f313b8fcc43b3a6bc647b0b65bc68eb1;hp=ed574e4d0b4f29d2811f407a5d7bce9803b192be;hb=42a67a41b64a6e0cc3fd2a63a0749e9aa4b9374c;hpb=12b4b71c8c8feb6154abc04dfa9bb93a521ef789 diff --git a/iramuteq.py b/iramuteq.py index ed574e4..20db754 100644 --- a/iramuteq.py +++ b/iramuteq.py @@ -124,16 +124,15 @@ CreateIraDirectory(UserConfigPath, AppliPath) #fichiers log pour windows (py2exe) log = logging.getLogger('iramuteq') fh = logging.FileHandler(os.path.join(UserConfigPath,'stdout.log')) -ch = logging.StreamHandler() formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s') -ch.setFormatter(formatter) fh.setFormatter(formatter) log.addHandler(fh) -if sys.platform != 'win32' or sys.platform != 'darwin': +if sys.platform != 'win32' and sys.platform != 'darwin': + ch = logging.StreamHandler() + ch.setFormatter(formatter) log.addHandler(ch) log.setLevel(logging.INFO) - class writer(object): def write(self, data): if data.strip() != '' : @@ -970,6 +969,9 @@ Voulez-vous fermer quand même ?""" PlaySound(self) except: BugReport(self) + + def SimiCluster(self, parametres = {}, fromprof = False, pathout = '', listactives = [], actives = [], tableau = None) : + DoSimi(self, param = parametres, fromprof = fromprof, pathout = pathout, listactives = listactives, actives = actives, tableau = tableau) def OnSimi(self,evt): #try :