equal
deleted
inserted
replaced
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 |