Lines Matching refs:output_file
59 def write_json_file(output_file, content, check_changes=False):
60 file_dir = os.path.dirname(os.path.abspath(output_file))
67 changed = __check_changes(output_file, content)
71 with os.fdopen(os.open(output_file, flags, modes), 'w') as output_f:
75 def __check_changes(output_file, content):
76 if os.path.exists(output_file) and os.path.isfile(output_file):
79 sha256_obj.update(str(read_json_file(output_file)).encode())
91 def write_file(output_file, content):
92 file_dir = os.path.dirname(os.path.abspath(output_file))
98 with os.fdopen(os.open(output_file, flags, modes), 'w') as output_f:
100 if output_file.endswith('.gni') or output_file.endswith('.gn'):
103 cmd.append(output_file)