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

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

Issue 1896853003: Remove useless path additions of old Telemetry location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | content/test/gpu/gpu_tests/path_util.py » ('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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """A library for Chrome GPU test code."""
5 import os
6 import sys
7 4
8 def Init(): 5 # Empty file so Python treats this directory as a package.
9 chromium_src_dir = os.path.abspath(os.path.join(
10 os.path.dirname(__file__), '..', '..', '..', '..'))
11
12 perf_path = os.path.join(chromium_src_dir, 'tools', 'perf')
13 absolute_perf_path = os.path.abspath(perf_path)
14
15 sys.path.append(absolute_perf_path)
16 from chrome_telemetry_build import chromium_config
17
18 telemetry_path = chromium_config.GetTelemetryDir()
19 if telemetry_path not in sys.path:
20 sys.path.append(telemetry_path)
21
22 catapult_base_path = os.path.join(
23 chromium_src_dir, 'third_party', 'catapult', 'catapult_base')
24 if catapult_base_path not in sys.path:
25 sys.path.append(catapult_base_path)
26
27 Init()
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/path_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698