equal
deleted
inserted
replaced
86 runtimefile.write("## User internal user variables and routines\n" + |
86 runtimefile.write("## User internal user variables and routines\n" + |
87 sections_code["globals"] + "\n") |
87 sections_code["globals"] + "\n") |
88 |
88 |
89 for section in ["init", "cleanup"]: |
89 for section in ["init", "cleanup"]: |
90 if not sections_code[section]: |
90 if not sections_code[section]: |
91 sections_code = " pass" |
91 sections_code[section] = " pass" |
92 |
92 |
93 sections_code.update({ |
93 sections_code.update({ |
94 "location": location_str, |
94 "location": location_str, |
95 "declare_hmi": "\n".join(map(lambda x:"%s = None" % x, hmi_frames.keys())), |
95 "declare_hmi": "\n".join(map(lambda x:"%s = None" % x, hmi_frames.keys())), |
96 "global_hmi": ",".join(hmi_frames.keys()), |
96 "global_hmi": ",".join(hmi_frames.keys()), |