16946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley# Copyright 2015 The Chromium OS Authors. All rights reserved. 26946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley# Use of this source code is governed by a BSD-style license that can be 36946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley# found in the LICENSE file. 46946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley 56946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley"""This module provides access to the autotest_lib.client namespace. It must be 66946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley included before any of the modules from that namespace.""" 76946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley 86946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wileyimport os, sys 96946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley 106946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wileydirname = os.path.dirname(sys.modules[__name__].__file__) 116946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wileyclient_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 126946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wileysys.path.insert(0, client_dir) 136946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley 146946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wileyimport setup_modules 156946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley 166946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wileysys.path.pop(0) 176946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wileysetup_modules.setup(base_path=client_dir, 186946f948018ca7ce9263e9a9b5ff0eee676c1f68Christopher Wiley root_module_name="autotest_lib.client") 19