Commit 9f511999 authored by Saul Ibarra's avatar Saul Ibarra

Make logs directory early

parent d8320d15
...@@ -58,6 +58,7 @@ from blink.util import QSingleton, run_in_gui_thread ...@@ -58,6 +58,7 @@ from blink.util import QSingleton, run_in_gui_thread
if getattr(sys, 'frozen', False): if getattr(sys, 'frozen', False):
output = sys.stdout output = sys.stdout
makedirs(ApplicationData.get('logs'))
sys.stdout = sys.stderr = open(ApplicationData.get('logs/output.log'), 'a') sys.stdout = sys.stderr = open(ApplicationData.get('logs/output.log'), 'a')
sys.stdout.write(output.getvalue()) sys.stdout.write(output.getvalue())
output.close() output.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment