summaryrefslogtreecommitdiffstats
path: root/chromium/tools/metrics/structured/pretty_print.py
blob: d3e5e15f329273024d98fc135fdd777fefbf60e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import sys

from sync import model

sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
import presubmit_util

def main(argv):
  dirname = os.path.dirname(os.path.realpath(__file__))
  xml = dirname + '/sync/structured.xml'
  old_xml = dirname + '/sync/structured.old.xml'
  presubmit_util.DoPresubmitMain(argv, xml,
                                 old_xml, lambda x: repr(model.Model(x)))


if '__main__' == __name__:
  sys.exit(main(sys.argv))