Merge branch 'master' of http://www.netdig.org/git/iramuteq
authorpierre <ratinaud@univ-tlse2.fr>
Mon, 28 Jan 2013 23:18:43 +0000 (00:18 +0100)
committerpierre <ratinaud@univ-tlse2.fr>
Mon, 28 Jan 2013 23:18:43 +0000 (00:18 +0100)
iramuteq.desktop [deleted file]
iramuteq.py

diff --git a/iramuteq.desktop b/iramuteq.desktop
deleted file mode 100644 (file)
index 36f9dce..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Version=0.0.1
-Type=Application
-Name=IRaMuTeQ
-Exec=iramuteq
-Terminal=false
-Categories=Education;Science;
-Icon=/usr/share/icons/iraicone.png
index c211567..20db754 100644 (file)
@@ -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() != '' :