Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1281)

Unified Diff: tools/perf/core/path_util.py

Issue 2823063003: Revert of [tools/perf] Remove default values of benchmark_dirs and top_level_dir in chromium_config module (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/chrome_telemetry_build/chromium_config.py ('k') | tools/perf/core/perf_data_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/core/path_util.py
diff --git a/tools/perf/core/path_util.py b/tools/perf/core/path_util.py
index dcfcd082b256222ccf3b92e936827c44e6d6fcda..27ea09c157806aa7a8e9c97c8a9c8812759c0ee9 100644
--- a/tools/perf/core/path_util.py
+++ b/tools/perf/core/path_util.py
@@ -5,15 +5,18 @@
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.abspath(os.path.join(
- os.path.dirname(__file__), '..', '..', '..'))
+ return chromium_config.GetChromiumSrcDir()
+
def GetTelemetryDir():
- return os.path.join(
- GetChromiumSrcDir(), 'third_party', 'catapult', 'telemetry')
+ return chromium_config.GetTelemetryDir()
def GetPerfDir():
« no previous file with comments | « tools/perf/chrome_telemetry_build/chromium_config.py ('k') | tools/perf/core/perf_data_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698