plugger.py
changeset 288 7ee96191c476
parent 286 a2a8a52b0d4f
child 290 3bd617ae7a05
--- a/plugger.py	Sun Jan 04 17:30:34 2009 +0100
+++ b/plugger.py	Fri Jan 09 17:07:56 2009 +0100
@@ -1105,7 +1105,7 @@
         for v in self._VariablesList :
             if v["vartype"] == "FB" and v["type"] == "PYTHON_EVAL":
                 python_eval_fb_list.append(v)
-        python_eval_fb_count = len(python_eval_fb_list)
+        python_eval_fb_count = max(1, len(python_eval_fb_list))
         
         # prepare debug code
         python_code = targets.code("plc_python") % {