Chromium Code Reviews| 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..957281fb3d13ae71906cad92bdd88a0077f03643 100644 |
| --- a/content/test/gpu/gpu_tests/__init__.py |
| +++ b/content/test/gpu/gpu_tests/__init__.py |
| @@ -6,10 +6,15 @@ 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) |
| + telemetry_path = os.path.abspath(os.path.join( |
| + os.path.dirname(__file__), '..', '..', '..', '..', 'tools', 'telemetry')) |
|
aiolos (Not reviewing)
2016/01/08 21:07:17
I could add a chromium_src_dir here and use it in
Ken Russell (switch to Gerrit)
2016/01/08 22:05:56
Yes, please do that. Thanks.
aiolos (Not reviewing)
2016/01/08 22:16:12
Done.
|
| + if telemetry_path not in sys.path: |
| + sys.path.append(telemetry_path) |
| + |
| + catapult_base_path = os.path.abspath(os.path.join( |
| + os.path.dirname(__file__), '..', '..', '..', '..', 'third_party', |
| + 'catapult', 'catapult_base')) |
| + if catapult_base_path not in sys.path: |
| + sys.path.append(catapult_base_path) |
| Init() |