Home | History | Annotate | Download | only in wardmodem
      1 # Copyright (c) 2013 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 import os
      6 import sys
      7 dirname = os.path.dirname(sys.modules[__name__].__file__)
      8 client_dir = os.path.abspath(os.path.join(dirname, os.pardir, os.pardir,
      9                                           os.pardir))
     10 package_root_dir = os.path.abspath(dirname)
     11 
     12 sys.path.insert(0, client_dir)
     13 import setup_modules
     14 sys.path.pop(0)
     15 setup_modules.setup(base_path=client_dir,
     16                     root_module_name="autotest_lib.client")
     17 # Also insert the top level directory of current project so that imported
     18 # modules can be referenced relative to that.
     19 sys.path.insert(0, os.path.join(package_root_dir))
     20