| Index: content/test/gpu/gpu_tests/__init__.py
|
| diff --git a/content/test/gpu/gpu_tests/__init__.py b/content/test/gpu/gpu_tests/__init__.py
|
| index 3b4df351fdb2b680fcfc75b209f1cd45b614f550..de02643a82080b48570135c026ba1f8671cbb87b 100644
|
| --- a/content/test/gpu/gpu_tests/__init__.py
|
| +++ b/content/test/gpu/gpu_tests/__init__.py
|
| @@ -6,10 +6,16 @@ import os
|
| import sys
|
|
|
| def Init():
|
| - telemetry_path = os.path.join(
|
| - os.path.dirname(__file__),
|
| - '..', '..', '..', '..', 'tools', 'telemetry')
|
| - absolute_telemetry_path = os.path.abspath(telemetry_path)
|
| - sys.path.append(absolute_telemetry_path)
|
| + chromium_src_dir = os.path.abspath(os.path.join(
|
| + os.path.dirname(__file__), '..', '..', '..', '..'))
|
| +
|
| + telemetry_path = os.path.join(chromium_src_dir, 'tools', 'telemetry')
|
| + 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)
|
|
|
| Init()
|
|
|