More fixes for PyCapsule_GetPointer race condition

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.
This commit is contained in:
Ghostkeeper 2020-10-16 14:26:27 +02:00
parent 26cb661240
commit 6abfa38838
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
4 changed files with 5 additions and 3 deletions

View file

@ -7,6 +7,7 @@
# tries to create PyQt objects on a non-main thread.
import Arcus # @UnusedImport
import Savitar # @UnusedImport
import pynest2d # @UnusedImport
from . import PostProcessingPlugin

View file

@ -13,7 +13,7 @@ from ..PostProcessingPlugin import PostProcessingPlugin
# not sure if needed
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
""" In this file, commnunity refers to regular Cura for makers."""
""" In this file, community refers to regular Cura for makers."""
mock_plugin_registry = MagicMock()
mock_plugin_registry.getPluginPath = MagicMock(return_value = "mocked_plugin_path")