--- a/Beremiz_service.py Tue Apr 09 13:08:03 2019 +0200
+++ b/Beremiz_service.py Tue Apr 09 13:13:27 2019 +0200
@@ -40,6 +40,7 @@
from runtime.xenomai import TryPreloadXenomai
from runtime import LogMessageAndException
from runtime import PlcStatus
+from runtime import default_evaluator
from runtime.Stunnel import ensurePSK
import util.paths as paths
@@ -384,14 +385,6 @@
os.mkdir(WorkingDir)
-def default_evaluator(tocall, *args, **kwargs):
- try:
- res = (tocall(*args, **kwargs), None)
- except Exception:
- res = (None, sys.exc_info())
- return res
-
-
if enabletwisted:
import warnings
with warnings.catch_warnings():