| Index: tools/perf/core/path_util.py
|
| diff --git a/tools/perf/core/path_util.py b/tools/perf/core/path_util.py
|
| index b3aee1e77a91ba0f7b06c5d6348616498d0606a2..77ea275fd1a67149ee806a5cbf7835816084cabd 100644
|
| --- a/tools/perf/core/path_util.py
|
| +++ b/tools/perf/core/path_util.py
|
| @@ -3,21 +3,28 @@
|
| # found in the LICENSE file.
|
|
|
| import os
|
| +import sys
|
| +
|
| +sys.path.insert(1, os.path.join(os.path.abspath(__file__), '..', '..'))
|
| +
|
| +from chrome_telemetry_build import chromium_config
|
|
|
|
|
| def GetChromiumSrcDir():
|
| - return os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
|
| - os.path.abspath(__file__)))))
|
| + return chromium_config.GetChromiumSrcDir()
|
| +
|
|
|
| def GetTelemetryDir():
|
| - return os.path.join(GetChromiumSrcDir(), 'tools', 'telemetry')
|
| + return chromium_config.GetTelemetryDir()
|
| +
|
|
|
| def GetPerfDir():
|
| return os.path.join(GetChromiumSrcDir(), 'tools', 'perf')
|
|
|
| +
|
| def GetPerfStorySetsDir():
|
| return os.path.join(GetPerfDir(), 'page_sets')
|
|
|
| +
|
| def GetPerfBenchmarksDir():
|
| return os.path.join(GetPerfDir(), 'benchmarks')
|
| -
|
|
|