Lines Matching refs:file_path
11 def GetFormattedJSONString(file_path): argument
12 with open(file_path, 'r') as f:
19 def ValidateJSONFormat(file_path): argument
20 with open(file_path, 'r') as f:
22 if file_content != GetFormattedJSONString(file_path):
25 (__file__, file_path))
26 print >> sys.stdout, ('%s passes the JSON format validation' % file_path)
29 def Format(file_path): argument
30 formatted_JSON_string = GetFormattedJSONString(file_path)
31 with open(file_path, 'w') as f:
51 Format(options.file_path)
53 ValidateJSONFormat(options.file_path)