mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00

One of the weirdest errors out there, and as far as I know we're the only ones suffering from it, due to having multiple packages of Python bindings created with Sip as well as having PyQt and different threads.
19 lines
632 B
Python
19 lines
632 B
Python
# Copyright (c) 2020 Jaime van Kessel, Ultimaker B.V.
|
|
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher.
|
|
|
|
# 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
|
|
import pynest2d # @UnusedImport
|
|
|
|
from . import PostProcessingPlugin
|
|
|
|
|
|
def getMetaData():
|
|
return {}
|
|
|
|
def register(app):
|
|
return {"extension": PostProcessingPlugin.PostProcessingPlugin()} |