19350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
29350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley# Use of this source code is governed by a BSD-style license that can be
39350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley# found in the LICENSE file.
49350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley
59350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley"""This module provides access to the autotest_lib.client namespace. It must be
69350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley   included before any of the modules from that namespace."""
79350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley
89350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wileyimport os, sys
99350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley
109350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wileydirname = os.path.dirname(sys.modules[__name__].__file__)
119350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wileyclient_dir = os.path.abspath(os.path.join(dirname, "..", ".."))
129350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wileysys.path.insert(0, client_dir)
139350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley
149350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wileyimport setup_modules
159350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley
169350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wileysys.path.pop(0)
179350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wileysetup_modules.setup(base_path=client_dir,
189350c4efd2c6a97c92b064d4d5cc4a73f8919bd0Christopher Wiley                    root_module_name="autotest_lib.client")
19