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

Side by Side Diff: content/test/gpu/gpu_tests/path_util.py

Issue 2824053002: [tools/perf] Remove default values of benchmark_dirs and top_level_dir in chromium_config module (R… (Closed)
Patch Set: Fix referencess 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | tools/perf/chrome_telemetry_build/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 8
9 def GetChromiumSrcDir(): 9 def GetChromiumSrcDir():
10 return os.path.abspath(os.path.join( 10 return os.path.abspath(os.path.join(
(...skipping 10 matching lines...) Expand all
21 sys.path.append(path) 21 sys.path.append(path)
22 22
23 23
24 def SetupTelemetryPaths(): 24 def SetupTelemetryPaths():
25 chromium_src_dir = GetChromiumSrcDir() 25 chromium_src_dir = GetChromiumSrcDir()
26 26
27 perf_path = os.path.join(chromium_src_dir, 'tools', 'perf') 27 perf_path = os.path.join(chromium_src_dir, 'tools', 'perf')
28 absolute_perf_path = os.path.abspath(perf_path) 28 absolute_perf_path = os.path.abspath(perf_path)
29 29
30 sys.path.append(absolute_perf_path) 30 sys.path.append(absolute_perf_path)
31 from chrome_telemetry_build import chromium_config 31 from core import path_util
32 32
33 telemetry_path = chromium_config.GetTelemetryDir() 33 telemetry_path = path_util.GetTelemetryDir()
34 if telemetry_path not in sys.path: 34 if telemetry_path not in sys.path:
35 sys.path.append(telemetry_path) 35 sys.path.append(telemetry_path)
36 36
37 py_utils_path = os.path.join( 37 py_utils_path = os.path.join(
38 chromium_src_dir, 'third_party', 'catapult', 'common', 'py_utils') 38 chromium_src_dir, 'third_party', 'catapult', 'common', 'py_utils')
39 if py_utils_path not in sys.path: 39 if py_utils_path not in sys.path:
40 sys.path.append(py_utils_path) 40 sys.path.append(py_utils_path)
41 41
42 pylint_path = os.path.join( 42 pylint_path = os.path.join(
43 chromium_src_dir, 'third_party', 'pylint') 43 chromium_src_dir, 'third_party', 'pylint')
44 if pylint_path not in sys.path: 44 if pylint_path not in sys.path:
45 sys.path.append(pylint_path) 45 sys.path.append(pylint_path)
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | tools/perf/chrome_telemetry_build/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698