blob: 4ce924f75633912f0e5d4c47adca45120327f98a [file] [log] [blame]
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A library for Chrome GPU test code."""
import os
import sys
def Init():
chromium_src_dir = os.path.abspath(os.path.join(
os.path.dirname(__file__), '..', '..', '..', '..'))
perf_path = os.path.join(chromium_src_dir, 'tools', 'perf')
absolute_perf_path = os.path.abspath(perf_path)
sys.path.append(absolute_perf_path)
from chrome_telemetry_build import chromium_config
telemetry_path = chromium_config.GetTelemetryDir()
if telemetry_path not in sys.path:
sys.path.append(telemetry_path)
catapult_base_path = os.path.join(
chromium_src_dir, 'third_party', 'catapult', 'catapult_base')
if catapult_base_path not in sys.path:
sys.path.append(catapult_base_path)
Init()