OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 """A library for Chrome GPU test code.""" | 4 """A library for Chrome GPU test code.""" |
5 import os | 5 import os |
6 import sys | 6 import sys |
7 | 7 |
8 def Init(): | 8 def Init(): |
9 chromium_src_dir = os.path.abspath(os.path.join( | 9 chromium_src_dir = os.path.abspath(os.path.join( |
10 os.path.dirname(__file__), '..', '..', '..', '..')) | 10 os.path.dirname(__file__), '..', '..', '..', '..')) |
11 | 11 |
12 telemetry_path = os.path.join(chromium_src_dir, 'tools', 'telemetry') | 12 perf_path = os.path.join(chromium_src_dir, 'tools', 'perf') |
| 13 absolute_perf_path = os.path.abspath(perf_path) |
| 14 |
| 15 sys.path.append(absolute_perf_path) |
| 16 from chrome_telemetry_build import chromium_config |
| 17 |
| 18 telemetry_path = chromium_config.GetTelemetryDir() |
13 if telemetry_path not in sys.path: | 19 if telemetry_path not in sys.path: |
14 sys.path.append(telemetry_path) | 20 sys.path.append(telemetry_path) |
15 | 21 |
16 catapult_base_path = os.path.join( | 22 catapult_base_path = os.path.join( |
17 chromium_src_dir, 'third_party', 'catapult', 'catapult_base') | 23 chromium_src_dir, 'third_party', 'catapult', 'catapult_base') |
18 if catapult_base_path not in sys.path: | 24 if catapult_base_path not in sys.path: |
19 sys.path.append(catapult_base_path) | 25 sys.path.append(catapult_base_path) |
20 | 26 |
21 Init() | 27 Init() |
OLD | NEW |