Fixed bug when building project with configuration extra variables
authorLaurent Bessard
Fri, 11 Oct 2013 08:54:50 +0200
changeset 1358 fe7770a30527
parent 1357 b8d577c7eb4b
child 1359 cce13b237b07
Fixed bug when building project with configuration extra variables
PLCGenerator.py
--- a/PLCGenerator.py	Thu Oct 10 17:43:11 2013 +0200
+++ b/PLCGenerator.py	Fri Oct 11 08:54:50 2013 +0200
@@ -326,7 +326,7 @@
             configuration.remove(extra_global_vars)
         else:
             for variable in extra_variables:
-                varlists[-1][1].remove(variable)
+                varlists[-1][0].remove(variable)
         
         # Generate any resource in the configuration
         for resource in configuration.getresource():