1e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liang# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liang# Use of this source code is governed by a BSD-style license that can be 3e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liang# found in the LICENSE file. 4e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liang 5e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangimport os 6e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangimport sys 7e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liang 8e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangdirname = os.path.dirname(sys.modules[__name__].__file__) 9e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liang# Load setup_modules from client_dir (two level up from current dir). 10e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangclient_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 11e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangsys.path.insert(0, client_dir) 12e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangimport setup_modules 13e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangsys.path.pop(0) 14e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liangsetup_modules.setup(base_path=client_dir, 15e15aa36789a41772d5689bc7610d45736eae60d0Ricky Liang root_module_name="autotest_lib.client") 16