common.py revision b341239ef136bea7884b0d44e70879cd7d8a3d21
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 5import os 6import sys 7dirname = os.path.dirname(sys.modules[__name__].__file__) 8relative_autotest_dir = os.path.join(dirname, os.pardir, os.pardir, os.pardir) 9autotest_dir = os.path.abspath(relative_autotest_dir) 10client_dir = os.path.join(autotest_dir, "client") 11sys.path.insert(0, client_dir) 12import setup_modules 13sys.path.pop(0) 14setup_modules.setup(base_path=autotest_dir, root_module_name="autotest_lib") 15