py_ext/py_ext.py
changeset 1740 b789b695b5c6
parent 1736 7e61baa047f0
child 1746 45d6f5fba016
equal deleted inserted replaced
1739:ec153828ded2 1740:b789b695b5c6
    49         # prepare python code
    49         # prepare python code
    50         plc_python_code = plc_python_code % {
    50         plc_python_code = plc_python_code % {
    51             "python_eval_fb_count": python_eval_fb_count }
    51             "python_eval_fb_count": python_eval_fb_count }
    52 
    52 
    53         Gen_Pythonfile_path = os.path.join(buildpath, "py_ext.c")
    53         Gen_Pythonfile_path = os.path.join(buildpath, "py_ext.c")
    54         pythonfile = open(Gen_Pythonfile_path,'w')
    54         pythonfile = open(Gen_Pythonfile_path, 'w')
    55         pythonfile.write(plc_python_code)
    55         pythonfile.write(plc_python_code)
    56         pythonfile.close()
    56         pythonfile.close()
    57 
    57 
    58         return (["py_ext"], [(Gen_Pythonfile_path, IECCFLAGS)], True), ""
    58         return (["py_ext"], [(Gen_Pythonfile_path, IECCFLAGS)], True), ""
    59 
    59