7378: Starting Gramps without console not possible

This commit is contained in:
Josip 2014-01-21 19:41:55 +01:00
parent 24b65ca5ed
commit 6286d938d3

View File

@ -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)