# HG changeset patch
# User Edouard Tisserant
# Date 1540903644 -3600
# Node ID 569d7fbc0bd4c2f69b8001ec4436f3d960ad3d26
# Parent  d42ae2877b6ef9d0fb6f9eee162f91721f6b03e3
Prevent PLCObject to be imported from IDE as a side effect of importing runtime package

diff -r d42ae2877b6e -r 569d7fbc0bd4 runtime/__init__.py
--- 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)