OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 4 |
5 import os | 5 import os |
6 import sys | 6 import sys |
7 | 7 |
8 | 8 |
9 def GetChromiumSrcDir(): | 9 def GetChromiumSrcDir(): |
10 return os.path.abspath(os.path.join( | 10 return os.path.abspath(os.path.join( |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 | 22 |
23 def GetPerfStorySetsDir(): | 23 def GetPerfStorySetsDir(): |
24 return os.path.join(GetPerfDir(), 'page_sets') | 24 return os.path.join(GetPerfDir(), 'page_sets') |
25 | 25 |
26 | 26 |
27 def GetPerfBenchmarksDir(): | 27 def GetPerfBenchmarksDir(): |
28 return os.path.join(GetPerfDir(), 'benchmarks') | 28 return os.path.join(GetPerfDir(), 'benchmarks') |
29 | 29 |
30 | 30 |
| 31 def GetPerfContribDir(): |
| 32 return os.path.join(GetPerfDir(), 'contrib') |
| 33 |
| 34 |
31 def AddTelemetryToPath(): | 35 def AddTelemetryToPath(): |
32 telemetry_path = GetTelemetryDir() | 36 telemetry_path = GetTelemetryDir() |
33 if telemetry_path not in sys.path: | 37 if telemetry_path not in sys.path: |
34 sys.path.insert(1, telemetry_path) | 38 sys.path.insert(1, telemetry_path) |
35 | 39 |
36 | 40 |
37 def AddPyUtilsToPath(): | 41 def AddPyUtilsToPath(): |
38 py_utils_dir = os.path.join( | 42 py_utils_dir = os.path.join( |
39 GetChromiumSrcDir(), 'third_party', 'catapult', 'common', 'py_utils') | 43 GetChromiumSrcDir(), 'third_party', 'catapult', 'common', 'py_utils') |
40 if py_utils_dir not in sys.path: | 44 if py_utils_dir not in sys.path: |
41 sys.path.insert(1, py_utils_dir) | 45 sys.path.insert(1, py_utils_dir) |
OLD | NEW |