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:
authorLipu Fei <lipu.fei815@gmail.com>2019-06-06 13:16:51 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-06-06 13:16:54 +0300
commitd0f1b74bd75e0372be25cb1b58427aed1ee8c9ef (patch)
tree4e4aae7e8c6afaed73364122b151c8bec6f881a8 /cura_app.py
parent0e55b25e0bc4ca7777124d625edeefb2dca9e6db (diff)
Fix mistake in CLI check
CURA-6549
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 2b2accbbb6..3599f127cc 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -33,7 +33,7 @@ if not known_args["debug"]:
return os.path.expanduser("~/Library/Logs/" + CuraAppName)
# Do not redirect stdout and stderr to files if we are running CLI.
- if hasattr(sys, "frozen") and "cli" in os.path.basename(sys.argv[0]).lower():
+ if hasattr(sys, "frozen") and "cli" not in os.path.basename(sys.argv[0]).lower():
dirpath = get_cura_dir_path()
os.makedirs(dirpath, exist_ok = True)
sys.stdout = open(os.path.join(dirpath, "stdout.log"), "w", encoding = "utf-8")