Home | History | Annotate | Download | only in config
      1 # Copyright (c) 2014 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, sys
      6 dirname = os.path.dirname(sys.modules[__name__].__file__)
      7 autotest_dir = os.path.abspath(
      8         os.path.join(dirname, os.pardir, os.pardir, os.pardir, os.pardir))
      9 client_dir = os.path.join(autotest_dir, 'client')
     10 sys.path.insert(0, client_dir)
     11 import setup_modules
     12 sys.path.pop(0)
     13 setup_modules.setup(base_path=autotest_dir, root_module_name='autotest_lib')
     14