py_ext/PythonFileCTNMixin.py
changeset 1897 62f9cae9a25f
parent 1878 fb73a6b6622d
child 1901 e8cf68d69447
--- a/py_ext/PythonFileCTNMixin.py	Wed Jan 10 14:35:04 2018 +0100
+++ b/py_ext/PythonFileCTNMixin.py	Wed Jan 10 15:36:03 2018 +0100
@@ -119,6 +119,7 @@
                 "configname": configname.upper(),
                 "uppername": variable.getname().upper(),
                 "IECtype": variable.gettype(),
+                "initial" : repr(variable.getinitial()),
                 "pyextname": pyextname
             },
             self.CodeFile.variables.variable)
@@ -136,6 +137,7 @@
 _%(pyextname)sGlobalsDesc.append((
     "%(name)s",
     "%(IECtype)s",
+    %(initial)s,
     %(desc)s,
     %(onchange)s,
     %(opts)s))