Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / build / fixjsstyle
index c771de5..d10b93a 100755 (executable)
@@ -1,14 +1,13 @@
 #!/usr/bin/env python
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
 import os
 import sys
 
-src_dir = os.path.join(os.path.dirname(__file__), '..')
-
-sys.path.append(os.path.join(src_dir, 'third_party/python_gflags'))
-sys.path.append(os.path.join(src_dir, 'third_party/closure_linter'))
-
-
-from closure_linter import fixjsstyle
 if __name__ == '__main__':
-  os.chdir(src_dir)
-  fixjsstyle.main()
+  build_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+  sys.path.append(build_dir)
+  from build import fixjsstyle
+  sys.exit(fixjsstyle.main())