From f829e550a0f0a55bd49f3477ba2eeed5903aa887 Mon Sep 17 00:00:00 2001 From: Josip Date: Tue, 21 Jan 2014 19:37:28 +0100 Subject: [PATCH] 7378: Starting Gramps without console not possible --- gramps/grampsapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index afd62ddca..3e8a4714c 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -90,7 +90,7 @@ if win(): pass # ok elif not os.path.isdir(HOME_DIR): os.makedirs(HOME_DIR) - sys.stdout = sys.stderr = io.open(logfile, "w", encoding='utf-8') + sys.stdout = sys.stderr = open(logfile, "w") stderrh = logging.StreamHandler(sys.stderr) stderrh.setFormatter(form) stderrh.setLevel(logging.DEBUG)