| Index: content/test/gpu/gpu_tests/path_util.py
|
| diff --git a/content/test/gpu/gpu_tests/path_util.py b/content/test/gpu/gpu_tests/path_util.py
|
| index 1a4326950583dbab76404a4988d087d98cf66be9..e178d76c164a6e8ab7436224d26ae01d508f038c 100644
|
| --- a/content/test/gpu/gpu_tests/path_util.py
|
| +++ b/content/test/gpu/gpu_tests/path_util.py
|
| @@ -19,3 +19,22 @@ def AddDirToPathIfNeeded(*path_parts):
|
| path = os.path.abspath(os.path.join(*path_parts))
|
| if os.path.isdir(path) and path not in sys.path:
|
| sys.path.append(path)
|
| +
|
| +
|
| +def SetupTelemetryPaths():
|
| + chromium_src_dir = GetChromiumSrcDir()
|
| +
|
| + perf_path = os.path.join(chromium_src_dir, 'tools', 'perf')
|
| + absolute_perf_path = os.path.abspath(perf_path)
|
| +
|
| + sys.path.append(absolute_perf_path)
|
| + from chrome_telemetry_build import chromium_config
|
| +
|
| + telemetry_path = chromium_config.GetTelemetryDir()
|
| + if telemetry_path not in sys.path:
|
| + sys.path.append(telemetry_path)
|
| +
|
| + catapult_base_path = os.path.join(
|
| + chromium_src_dir, 'third_party', 'catapult', 'catapult_base')
|
| + if catapult_base_path not in sys.path:
|
| + sys.path.append(catapult_base_path)
|
|
|