Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjen Hiemstra <ahiemstra@heimr.nl>2017-05-24 16:46:28 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2017-05-24 16:47:40 +0300
commit1c620ac621c98a4cc36987bc55474bc2404a15ba (patch)
treeb43534f83015090d2bf8a79dfa10aefa024c7df3 /cura_app.py
parent3ff9ad5d4e917af9ef1c0ff2c0bcaaea46c0d8f5 (diff)
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.
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py2
1 files changed, 1 insertions, 1 deletions
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")