Chromium Code Reviews| Index: tools/perf/profile_creators/__init__.py |
| diff --git a/tools/perf/profile_creators/__init__.py b/tools/perf/profile_creators/__init__.py |
| index 6220954c33664bdeeb9830915fa4ee1e87db077f..b778bdf3ba47949555077e13a9291aa272a8ccf9 100644 |
| --- a/tools/perf/profile_creators/__init__.py |
| +++ b/tools/perf/profile_creators/__init__.py |
| @@ -2,3 +2,17 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| """Generators for Chrome profiles for testing purposes.""" |
| +import os |
| +import sys |
| + |
| +chromium_src_path = os.path.realpath(os.path.join( |
|
erikchen
2016/01/08 00:33:29
This looks like duplicated code. Is there a reason
aiolos (Not reviewing)
2016/01/08 19:01:16
Nope, good call.
|
| + os.path.abspath(__file__), '..', '..', '..', '..')) |
| + |
| +telemetry_path = os.path.join(chromium_src_path, 'tools', 'telemetry') |
| +if telemetry_path not in sys.path: |
| + sys.path.insert(1, telemetry_path) |
| + |
| +catapult_base_path = os.path.join( |
| + chromium_src_path, 'third_party', 'catapult', 'catapult_base') |
| +if catapult_base_path not in sys.path: |
| + sys.path.insert(1, catapult_base_path) |