112dd813c417478dffb4bf66994eebbb125db7a27Chris Sosa# Copyright 2014 The Chromium OS Authors. All rights reserved. 212dd813c417478dffb4bf66994eebbb125db7a27Chris Sosa# Use of this source code is governed by a BSD-style license that can be 312dd813c417478dffb4bf66994eebbb125db7a27Chris Sosa# found in the LICENSE file. 412dd813c417478dffb4bf66994eebbb125db7a27Chris Sosa 512dd813c417478dffb4bf66994eebbb125db7a27Chris Sosa"""Common to set up import path.""" 612dd813c417478dffb4bf66994eebbb125db7a27Chris Sosa 712dd813c417478dffb4bf66994eebbb125db7a27Chris Sosaimport os, sys 812dd813c417478dffb4bf66994eebbb125db7a27Chris Sosadirname = os.path.dirname(sys.modules[__name__].__file__) 912dd813c417478dffb4bf66994eebbb125db7a27Chris Sosacros_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 1012dd813c417478dffb4bf66994eebbb125db7a27Chris Sosasys.path.insert(0, cros_dir) 11