1# Copyright (c) 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import os
6import sys
7
8tracing_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
9                                            '..', '..'))
10if tracing_path not in sys.path:
11  sys.path.append(tracing_path)
12
13from tracing import tracing_project
14
15
16def main():
17  project = tracing_project.TracingProject()
18
19  sys.path.append(os.path.join(
20      project.tracing_third_party_path, 'python_gflags'))
21  sys.path.append(os.path.join(
22      project.tracing_third_party_path, 'closure_linter'))
23
24  from closure_linter import fixjsstyle
25
26  os.chdir(project.tracing_src_path)
27
28  fixjsstyle.main()
29