OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # Source/ path is needed both to find input IDL files, and to import other |
| 6 # Python modules. |
| 7 |
| 8 """Tiny utility to find various paths, relevant for running bindings |
| 9 tests. |
| 10 """ |
| 11 |
| 12 import os |
| 13 |
| 14 |
| 15 def get_blink_source(): |
| 16 return os.path.normpath( |
| 17 os.path.join( |
| 18 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, |
| 19 os.pardir, 'Source')) |
| 20 |
| 21 |
| 22 def get_bindings_scripts(): |
| 23 return os.path.join(get_blink_source(), 'bindings', 'scripts') |
| 24 |
| 25 |
| 26 def get_test_input(): |
| 27 return os.path.join(get_blink_source(), 'bindings', 'tests', 'idls') |
| 28 |
| 29 |
| 30 def get_test_results(): |
| 31 return os.path.join(get_blink_source(), 'bindings', 'tests', 'results') |
OLD | NEW |