blob: b14585897ba1b47332753cd71157ed8b43311df9 [file] [log] [blame]
#!/usr/bin/env python
# Copyright 2016 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
_NODE_RUNNER_PATH = os.path.abspath(
os.path.join(os.path.dirname(__file__), '..'))
_PY_UTILS_PATH = os.path.abspath(
os.path.join(_NODE_RUNNER_PATH, '..', 'py_utils'))
def _AddToPathIfNeeded(path):
if path not in sys.path:
sys.path.insert(0, path)
if __name__ == '__main__':
_AddToPathIfNeeded(_NODE_RUNNER_PATH)
_AddToPathIfNeeded(_PY_UTILS_PATH)
from node_runner import node_util
print node_util.RunEslint()
sys.exit(0)