# HG changeset patch # User Edouard Tisserant # Date 1592482696 -7200 # Node ID abc2088aac4e638a1b9bf69ccdb15b85d0e8e8f7 # Parent 6bfed67574956498672e6d2a8dbc80b091e0b00a Py_ext: use non-derived type when generating C code for handling Python PLC globals. diff -r 6bfed6757495 -r abc2088aac4e py_ext/PythonFileCTNMixin.py --- a/py_ext/PythonFileCTNMixin.py Wed Jun 17 14:32:55 2020 +0200 +++ b/py_ext/PythonFileCTNMixin.py Thu Jun 18 14:18:16 2020 +0200 @@ -119,7 +119,7 @@ "opts": repr(variable.getopts()), "configname": configname.upper(), "uppername": variable.getname().upper(), - "IECtype": variable.gettype(), + "IECtype": self.GetCTRoot().GetBaseType(variable.gettype()), "initial": repr(variable.getinitial()), "pyextname": pyextname },