From 672271d525875b0cffe1d6bf6b4e1ee58e352bd1 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 8 Feb 2019 09:50:20 +0100 Subject: [PATCH] Fix running automated tests on Python 3.6 This prevents the PyCapsule_GetPointer error. --- plugins/UM3NetworkPrinting/src/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/UM3NetworkPrinting/src/__init__.py b/plugins/UM3NetworkPrinting/src/__init__.py index e69de29bb2..659263c0d6 100644 --- a/plugins/UM3NetworkPrinting/src/__init__.py +++ b/plugins/UM3NetworkPrinting/src/__init__.py @@ -0,0 +1,9 @@ +# Copyright (c) 2019 Ultimaker B.V. +# Cura is released under the terms of the LGPLv3 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 \ No newline at end of file