From 1c620ac621c98a4cc36987bc55474bc2404a15ba Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 24 May 2017 15:46:28 +0200 Subject: [PATCH] Always redirect stdout/stderr to file if application is frozen This will make stdout/stderr also redirect to file if we are running a build on OSX or Linux. --- cura_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura_app.py b/cura_app.py index f608aca1da..1d5f7737f3 100755 --- a/cura_app.py +++ b/cura_app.py @@ -53,7 +53,7 @@ import Arcus #@UnusedImport import cura.CuraApplication import cura.Settings.CuraContainerRegistry -if Platform.isWindows() and hasattr(sys, "frozen"): +if hasattr(sys, "frozen"): dirpath = os.path.expanduser("~/AppData/Local/cura/") os.makedirs(dirpath, exist_ok = True) sys.stdout = open(os.path.join(dirpath, "stdout.log"), "w")