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

Side by Side Diff: tools/perf/core/path_util.py

Issue 2821663002: [tools/perf] Remove default values of benchmark_dirs and top_level_dir in chromium_config module (Closed)
Patch Set: Address martiniss@'s comment 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 unified diff | Download patch
OLDNEW
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 6 import sys
7 7
8 sys.path.insert(1, os.path.join(os.path.abspath(__file__), '..', '..'))
9
10 from chrome_telemetry_build import chromium_config
11
12 8
13 def GetChromiumSrcDir(): 9 def GetChromiumSrcDir():
14 return chromium_config.GetChromiumSrcDir() 10 return os.path.abspath(os.path.join(
15 11 os.path.dirname(__file__), '..', '..', '..'))
16 12
17 13
18 def GetTelemetryDir(): 14 def GetTelemetryDir():
19 return chromium_config.GetTelemetryDir() 15 return os.path.join(
16 GetChromiumSrcDir(), 'third_party', 'catapult', 'telemetry')
20 17
21 18
22 def GetPerfDir(): 19 def GetPerfDir():
23 return os.path.join(GetChromiumSrcDir(), 'tools', 'perf') 20 return os.path.join(GetChromiumSrcDir(), 'tools', 'perf')
24 21
25 22
26 def GetPerfStorySetsDir(): 23 def GetPerfStorySetsDir():
27 return os.path.join(GetPerfDir(), 'page_sets') 24 return os.path.join(GetPerfDir(), 'page_sets')
28 25
29 26
30 def GetPerfBenchmarksDir(): 27 def GetPerfBenchmarksDir():
31 return os.path.join(GetPerfDir(), 'benchmarks') 28 return os.path.join(GetPerfDir(), 'benchmarks')
32 29
33 30
34 def AddTelemetryToPath(): 31 def AddTelemetryToPath():
35 telemetry_path = GetTelemetryDir() 32 telemetry_path = GetTelemetryDir()
36 if telemetry_path not in sys.path: 33 if telemetry_path not in sys.path:
37 sys.path.insert(1, telemetry_path) 34 sys.path.insert(1, telemetry_path)
38 35
39 36
40 def AddPyUtilsToPath(): 37 def AddPyUtilsToPath():
41 py_utils_dir = os.path.join( 38 py_utils_dir = os.path.join(
42 GetChromiumSrcDir(), 'third_party', 'catapult', 'common', 'py_utils') 39 GetChromiumSrcDir(), 'third_party', 'catapult', 'common', 'py_utils')
43 if py_utils_dir not in sys.path: 40 if py_utils_dir not in sys.path:
44 sys.path.insert(1, py_utils_dir) 41 sys.path.insert(1, py_utils_dir)
OLDNEW
« 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