• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Lint as: python2, python3
2# Copyright 2015 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""This module provides access to the autotest_lib.client namespace. It must be
7   included before any of the modules from that namespace."""
8
9import os, sys
10
11dirname = os.path.dirname(sys.modules[__name__].__file__)
12client_dir = os.path.abspath(os.path.join(dirname, "..", ".."))
13sys.path.insert(0, client_dir)
14
15import setup_modules
16
17sys.path.pop(0)
18setup_modules.setup(base_path=client_dir,
19                    root_module_name="autotest_lib.client")
20