mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
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.
This commit is contained in:
parent
3ff9ad5d4e
commit
1c620ac621
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue