OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 4 |
5 import os | 5 import os |
| 6 import sys |
| 7 |
| 8 sys.path.insert(1, os.path.join(os.path.abspath(__file__), '..', '..')) |
| 9 |
| 10 from chrome_telemetry_build import chromium_config |
6 | 11 |
7 | 12 |
8 def GetChromiumSrcDir(): | 13 def GetChromiumSrcDir(): |
9 return os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname( | 14 return chromium_config.GetChromiumSrcDir() |
10 os.path.abspath(__file__))))) | 15 |
11 | 16 |
12 def GetTelemetryDir(): | 17 def GetTelemetryDir(): |
13 return os.path.join(GetChromiumSrcDir(), 'tools', 'telemetry') | 18 return chromium_config.GetTelemetryDir() |
| 19 |
14 | 20 |
15 def GetPerfDir(): | 21 def GetPerfDir(): |
16 return os.path.join(GetChromiumSrcDir(), 'tools', 'perf') | 22 return os.path.join(GetChromiumSrcDir(), 'tools', 'perf') |
17 | 23 |
| 24 |
18 def GetPerfStorySetsDir(): | 25 def GetPerfStorySetsDir(): |
19 return os.path.join(GetPerfDir(), 'page_sets') | 26 return os.path.join(GetPerfDir(), 'page_sets') |
20 | 27 |
| 28 |
21 def GetPerfBenchmarksDir(): | 29 def GetPerfBenchmarksDir(): |
22 return os.path.join(GetPerfDir(), 'benchmarks') | 30 return os.path.join(GetPerfDir(), 'benchmarks') |
23 | |
OLD | NEW |