Prevent PLCObject to be imported from IDE as a side effect of importing runtime package
--- a/runtime/__init__.py Tue Oct 30 09:46:46 2018 +0100
+++ b/runtime/__init__.py Tue Oct 30 13:47:24 2018 +0100
@@ -9,9 +9,6 @@
from runtime.Worker import worker
MainWorker = worker()
-from runtime.PLCObject import PLCObject # noqa # pylint: disable=wrong-import-position
-
-
_PLCObjectSingleton = None
@@ -31,4 +28,5 @@
def CreatePLCObjectSingleton(*args, **kwargs):
global _PLCObjectSingleton
+ from runtime.PLCObject import PLCObject # noqa # pylint: disable=wrong-import-position
_PLCObjectSingleton = PLCObject(*args, **kwargs)