summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 16:01:38 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 16:01:38 +0000
commita35866ba8d0ea2959133331f41ddfad8ef74e23f (patch)
tree6c9acd8acfe9dd0c8fc82da0b0031b71283ca502 /src/poezio.py
parentaccfe046bea252f12ecd441bee348d3cd7e1bf84 (diff)
downloadpoezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.tar.gz
poezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.tar.bz2
poezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.tar.xz
poezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.zip
code cleanup before 0.6 beta
Diffstat (limited to 'src/poezio.py')
-rw-r--r--src/poezio.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/poezio.py b/src/poezio.py
index dc714a4f..e2e6fd99 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -20,15 +20,13 @@
"""
Starting point of poezio. Launches both the Connection and Gui
"""
-
import sys
-# import locale
-# locale.setlocale(locale.LC_ALL, '')
-
# disable any printout (this would mess the display)
-# sys.stdout = open('/dev/null', 'w')
-sys.stderr = open('errors', 'w')
+if len(sys.argv) == 2:
+ sys.stderr = open('errors', 'a')
+else:
+ sys.stderr = open('/dev/null', 'a')
from connection import Connection
from multiuserchat import MultiUserChat