mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix mistake in CLI check
CURA-6549
This commit is contained in:
parent
0e55b25e0b
commit
d0f1b74bd7
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue