mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Merge branch '4.5'
Conflicts: cura_app.py -> Due to moving some imports around.
This commit is contained in:
commit
a1438e91d0
20 changed files with 113 additions and 121 deletions
18
cura_app.py
18
cura_app.py
|
|
@ -8,9 +8,17 @@ import faulthandler
|
|||
import os
|
||||
import sys
|
||||
|
||||
# Workaround for a race condition on certain systems where there
|
||||
# is a race condition between Arcus and PyQt. Importing Arcus
|
||||
# first seems to prevent Sip from going into a state where it
|
||||
# tries to create PyQt objects on a non-main thread.
|
||||
import Arcus # @UnusedImport
|
||||
import Savitar # @UnusedImport
|
||||
|
||||
from UM.Platform import Platform
|
||||
from cura import ApplicationMetadata
|
||||
from cura.ApplicationMetadata import CuraAppName
|
||||
from cura.CrashHandler import CrashHandler
|
||||
|
||||
try:
|
||||
import sentry_sdk
|
||||
|
|
@ -42,8 +50,9 @@ if with_sentry_sdk:
|
|||
sentry_env = "nightly"
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
|
||||
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
||||
before_send = CrashHandler.sentryBeforeSend,
|
||||
environment = sentry_env,
|
||||
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
||||
default_integrations = False,
|
||||
|
|
@ -166,13 +175,6 @@ if sys.stderr:
|
|||
elif sys.stdout:
|
||||
faulthandler.enable(file = sys.stdout, all_threads = True)
|
||||
|
||||
# Workaround for a race condition on certain systems where there
|
||||
# is a race condition between Arcus and PyQt. Importing Arcus
|
||||
# first seems to prevent Sip from going into a state where it
|
||||
# tries to create PyQt objects on a non-main thread.
|
||||
import Arcus #@UnusedImport
|
||||
import Savitar #@UnusedImport
|
||||
|
||||
from cura.CuraApplication import CuraApplication
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue