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:
authorThomas Karl Pietrowski <thopiekar@gmail.com>2016-06-11 13:50:28 +0300
committerThomas Karl Pietrowski <thopiekar@gmail.com>2016-06-11 13:50:28 +0300
commit0d8292df49a47e6c1a5d563ecca638fcbc02fbe3 (patch)
treefb31a446ecf94c9ffad05208fc0a94bd6408980e /cura_app.py
parent67a3ae36a5b5c80df1e0998ada070848ddc569d5 (diff)
Using platform.system() for Windows detection
This is just cosmetics. It works the same as system.platform, but looks better. Additionally "win32" might be misleading, as it sounds like we are checking for Windows 32bit here.
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cura_app.py b/cura_app.py
index 3bcce18fb5..4f61ef415d 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -4,6 +4,7 @@
# Cura is released under the terms of the AGPLv3 or higher.
import os
+import platform
import sys
#WORKAROUND: GITHUB-704 GITHUB-708
@@ -35,7 +36,7 @@ sys.excepthook = exceptHook
import Arcus #@UnusedImport
import cura.CuraApplication
-if sys.platform == "win32" and hasattr(sys, "frozen"):
+if platform.system() == "Windows" and 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")