1cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Copyright 2014 The Chromium Authors. All rights reserved. 2cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be 3cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# found in the LICENSE file. 4cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 5cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)import os 6cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)import sys 7cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 8cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)_CHROME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), 9cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) '..', '..', '..')) 10cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 11cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Bring in tvcm module for basic JS components capabilities. 12cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)sys.path.append(os.path.join(_CHROME_PATH, 13cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 'third_party', 'trace-viewer', 'third_party', 'tvcm')) 14cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 15cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Bring in trace_viewer module for the UI features that are part of the trace 16cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# viewer. 17cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)sys.path.append(os.path.join(_CHROME_PATH, 18cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) 'third_party', 'trace-viewer')) 19