runtime/__init__.py
changeset 2327 569d7fbc0bd4
parent 2309 d8fb90a2e11f
child 2583 e172ab28d04e
equal deleted inserted replaced
2326:d42ae2877b6e 2327:569d7fbc0bd4
     6 import traceback
     6 import traceback
     7 import sys
     7 import sys
     8 
     8 
     9 from runtime.Worker import worker
     9 from runtime.Worker import worker
    10 MainWorker = worker()
    10 MainWorker = worker()
    11 
       
    12 from runtime.PLCObject import PLCObject  # noqa # pylint: disable=wrong-import-position
       
    13 
       
    14 
    11 
    15 _PLCObjectSingleton = None
    12 _PLCObjectSingleton = None
    16 
    13 
    17 
    14 
    18 def GetPLCObjectSingleton():
    15 def GetPLCObjectSingleton():
    29     traceback.print_exception(*exp)
    26     traceback.print_exception(*exp)
    30 
    27 
    31 
    28 
    32 def CreatePLCObjectSingleton(*args, **kwargs):
    29 def CreatePLCObjectSingleton(*args, **kwargs):
    33     global _PLCObjectSingleton
    30     global _PLCObjectSingleton
       
    31     from runtime.PLCObject import PLCObject  # noqa # pylint: disable=wrong-import-position
    34     _PLCObjectSingleton = PLCObject(*args, **kwargs)
    32     _PLCObjectSingleton = PLCObject(*args, **kwargs)