summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
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