• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3# found in the LICENSE file.
4
5import os
6import sys
7
8
9_CATAPULT_PATH = os.path.abspath(os.path.join(
10    os.path.dirname(__file__), '..', '..', '..', 'third_party', 'catapult'))
11
12_DEVIL_PATH = os.path.join(_CATAPULT_PATH, 'devil')
13
14_PYTRACE_PATH = os.path.join(_CATAPULT_PATH, 'common', 'py_trace_event')
15
16_PY_UTILS_PATH = os.path.join(_CATAPULT_PATH, 'common', 'py_utils')
17
18_TRACE2HTML_PATH = os.path.join(_CATAPULT_PATH, 'tracing')
19
20
21if _DEVIL_PATH not in sys.path:
22  sys.path.append(_DEVIL_PATH)
23
24if _PYTRACE_PATH not in sys.path:
25  sys.path.append(_PYTRACE_PATH)
26
27if _PY_UTILS_PATH not in sys.path:
28  sys.path.append(_PY_UTILS_PATH)
29
30if _TRACE2HTML_PATH not in sys.path:
31  sys.path.append(_TRACE2HTML_PATH)
32