equal
deleted
inserted
replaced
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) |