mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix stdout/stderr output location so we do not output to UM but to cura
Fixes #452
This commit is contained in:
parent
afa44ed314
commit
23e36b51e6
1 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ sys.excepthook = exceptHook
|
||||||
import cura.CuraApplication
|
import cura.CuraApplication
|
||||||
|
|
||||||
if sys.platform == "win32" and hasattr(sys, "frozen"):
|
if sys.platform == "win32" and hasattr(sys, "frozen"):
|
||||||
from UM.Resources import Resources
|
import os.path
|
||||||
sys.stdout = open(Resources.getStoragePath(Resources.Resources, "stdout.log"), "w")
|
sys.stdout = open(os.path.expanduser("~/AppData/Local/cura/stdout.log"), "w")
|
||||||
sys.stderr = open(Resources.getStoragePath(Resources.Resources, "stderr.log"), "w")
|
sys.stderr = open(os.path.expanduser("~/AppData/Local/cura/stderr.log"), "w")
|
||||||
|
|
||||||
app = cura.CuraApplication.CuraApplication.getInstance()
|
app = cura.CuraApplication.CuraApplication.getInstance()
|
||||||
app.run()
|
app.run()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue