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