Lines Matching refs:ofile
9 def config_error(ofile, led_name, group_name, message): argument
10 ofile.close()
11 os.remove(ofile.name)
29 ofile,
48 ifile, led_name, list_dict, priority_dict, ofile, has_group_priority, group argument
55 ofile,
63 ofile, led_name, group, "no group priority or led priority defined"
76 ofile.write(' {"' + underscore(led_name) + '",')
77 ofile.write(action + ",")
78 ofile.write(dutyOn + ",")
79 ofile.write(period + ",")
80 ofile.write(priority + ",")
82 ofile.write("},\n")
87 def generate_file_single_group(ifile, group, priority_dict, ofile): argument
100 ofile.write(
117 ofile,
122 ofile.write(" }}},\n")
127 def generate_file(ifile, ofile): argument
131 ofile.write("/* !!! WARNING: This is a GENERATED Code..")
132 ofile.write("Please do NOT Edit !!! */\n\n")
134 ofile.write("static const phosphor::led::GroupMap")
135 ofile.write(" systemLedMap = {\n\n")
138 generate_file_single_group(ifile, group, priority_dict, ofile)
139 ofile.write("};\n")
187 with open(os.path.join(args.outputdir, args.outputfilename), "w") as ofile:
188 generate_file(ifile, ofile)