Lines Matching refs:output_file
59 def write_json_file(output_file, content, check_changes=False): argument
60 file_dir = os.path.dirname(os.path.abspath(output_file))
65 changed = __check_changes(output_file, content)
69 with open(output_file, 'w') as output_f:
73 def __check_changes(output_file, content): argument
74 if os.path.exists(output_file) and os.path.isfile(output_file):
77 sha256_obj.update(str(read_json_file(output_file)).encode())
89 def write_file(output_file, content): argument
90 file_dir = os.path.dirname(os.path.abspath(output_file))
94 with open(output_file, 'w') as output_f:
96 if output_file.endswith('.gni') or output_file.endswith('.gn'):
99 cmd.append(output_file)