mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 04:09:40 +08:00
Capture stdout and stderr on Windows to prevent py2exe messages
CURA-215 #done
This commit is contained in:
parent
4ae07084bf
commit
9b119e996a
@ -13,5 +13,10 @@ sys.excepthook = exceptHook
|
||||
|
||||
import cura.CuraApplication
|
||||
|
||||
if sys.platform == "win32" and hasattr(sys, "frozen"):
|
||||
from UM.Resources import Resources
|
||||
sys.stdout = open(Resources.getPath(Resources.Resources, "stdout.log"), "w")
|
||||
sys.stderr = open(Resources.getPath(Resources.Resources, "stderr.log"), "w")
|
||||
|
||||
app = cura.CuraApplication.CuraApplication.getInstance()
|
||||
app.run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user