OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 from os import path as os_path |
| 7 |
| 8 |
| 9 _THIRD_PARTY_NODE_DIR = os_path.join(os_path.dirname(__file__)) |
| 10 |
| 11 |
| 12 _THIRD_PARTY_NODE_MODULES_DIR = os_path.join( |
| 13 _THIRD_PARTY_NODE_DIR, 'node_modules') |
| 14 |
| 15 def _get_binary(*args): |
| 16 return os_path.join(_THIRD_PARTY_NODE_MODULES_DIR, *args) |
| 17 |
| 18 def get_vulcanize_binary(): |
| 19 return _get_binary('vulcanize', 'bin', 'vulcanize') |
| 20 |
| 21 def get_crisper_binary(): |
| 22 return _get_binary('crisper', 'bin', 'crisper') |
| 23 |
| 24 def get_polymer_css_build_binary(): |
| 25 return _get_binary('polymer-css-build', 'bin', 'polymer-css-build') |
| 26 |
| 27 def get_uglifyjs_binary(): |
| 28 return _get_binary('uglifyjs', 'bin', 'uglifyjs') |
OLD | NEW |