| Index: third_party/node/node.py
|
| diff --git a/third_party/node/node.py b/third_party/node/node.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..e2e9a3774ae08c7d47d30fff5d7a18a107b72449
|
| --- /dev/null
|
| +++ b/third_party/node/node.py
|
| @@ -0,0 +1,15 @@
|
| +#!/usr/bin/env python
|
| +# 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.
|
| +
|
| +from os import path as os_path
|
| +import platform
|
| +
|
| +
|
| +def GetBinaryPath():
|
| + return os_path.join(os_path.dirname(__file__), *{
|
| + 'Darwin': ('mac', 'node-darwin-x64', 'bin', 'node'),
|
| + 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'),
|
| + 'Windows': ('win', 'node.exe'),
|
| + }[platform.system()])
|
|
|