OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 """Generators for Chrome profiles for testing purposes.""" | 4 """Generators for Chrome profiles for testing purposes.""" |
5 import os | |
6 import sys | |
7 | |
8 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.
| |
9 os.path.abspath(__file__), '..', '..', '..', '..')) | |
10 | |
11 telemetry_path = os.path.join(chromium_src_path, 'tools', 'telemetry') | |
12 if telemetry_path not in sys.path: | |
13 sys.path.insert(1, telemetry_path) | |
14 | |
15 catapult_base_path = os.path.join( | |
16 chromium_src_path, 'third_party', 'catapult', 'catapult_base') | |
17 if catapult_base_path not in sys.path: | |
18 sys.path.insert(1, catapult_base_path) | |
OLD | NEW |