| # Copyright 2017 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. |
| Thin wrapper around the local node.js installed as part of chromium DEPS |
| SCRIPTS_PATH = path.dirname(path.abspath(__file__)) |
| THIRD_PARTY_PATH = path.join(SCRIPTS_PATH, '..', '..', '..', '..') |
| NODE_PATH = path.join(THIRD_PARTY_PATH, 'node') |
| ESLINT_PATH = path.join(THIRD_PARTY_PATH, 'devtools-node-modules', 'third_party', |
| 'node_modules', '.bin', 'eslint') |
| old_sys_path = sys.path[:] |
| sys.path.append(NODE_PATH) |
| return node.GetBinaryPath() |