equal
deleted
inserted
replaced
9 from __future__ import absolute_import |
9 from __future__ import absolute_import |
10 import os |
10 import os |
11 import shutil |
11 import shutil |
12 from itertools import izip, imap |
12 from itertools import izip, imap |
13 from pprint import pprint, pformat |
13 from pprint import pprint, pformat |
|
14 import hashlib |
14 |
15 |
15 import wx |
16 import wx |
16 |
17 |
17 import util.paths as paths |
18 import util.paths as paths |
18 from POULibrary import POULibrary |
19 from POULibrary import POULibrary |
227 "extern_variables_declarations": "\n".join(extern_variables_declarations), |
228 "extern_variables_declarations": "\n".join(extern_variables_declarations), |
228 "buffer_size": buf_index, |
229 "buffer_size": buf_index, |
229 "item_count": item_count, |
230 "item_count": item_count, |
230 "var_access_code": targets.GetCode("var_access.c"), |
231 "var_access_code": targets.GetCode("var_access.c"), |
231 "PLC_ticktime": self.GetCTR().GetTicktime(), |
232 "PLC_ticktime": self.GetCTR().GetTicktime(), |
232 "hmi_hash_int": ",".join(map(str,hmi_tree_root.hash())) |
233 "hmi_hash_ints": ",".join(map(str,hmi_tree_root.hash())) |
233 } |
234 } |
234 |
235 |
235 gen_svghmi_c_path = os.path.join(buildpath, "svghmi.c") |
236 gen_svghmi_c_path = os.path.join(buildpath, "svghmi.c") |
236 gen_svghmi_c = open(gen_svghmi_c_path, 'w') |
237 gen_svghmi_c = open(gen_svghmi_c_path, 'w') |
237 gen_svghmi_c.write(svghmi_c_code) |
238 gen_svghmi_c.write(svghmi_c_code) |