7378: Starting Gramps without console not possible
This commit is contained in:
parent
f8059fd10c
commit
f829e550a0
@ -90,7 +90,7 @@ if win():
|
|||||||
pass # ok
|
pass # ok
|
||||||
elif not os.path.isdir(HOME_DIR):
|
elif not os.path.isdir(HOME_DIR):
|
||||||
os.makedirs(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 = logging.StreamHandler(sys.stderr)
|
||||||
stderrh.setFormatter(form)
|
stderrh.setFormatter(form)
|
||||||
stderrh.setLevel(logging.DEBUG)
|
stderrh.setLevel(logging.DEBUG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user