1*9c5db199SXin Li# Lint as: python2, python3 2*9c5db199SXin Li# Copyright 2015 The Chromium OS Authors. All rights reserved. 3*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be 4*9c5db199SXin Li# found in the LICENSE file. 5*9c5db199SXin Li 6*9c5db199SXin Li"""This module provides access to the autotest_lib.client namespace. It must be 7*9c5db199SXin Li included before any of the modules from that namespace.""" 8*9c5db199SXin Li 9*9c5db199SXin Liimport os, sys 10*9c5db199SXin Li 11*9c5db199SXin Lidirname = os.path.dirname(sys.modules[__name__].__file__) 12*9c5db199SXin Liclient_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 13*9c5db199SXin Lisys.path.insert(0, client_dir) 14*9c5db199SXin Li 15*9c5db199SXin Liimport setup_modules 16*9c5db199SXin Li 17*9c5db199SXin Lisys.path.pop(0) 18*9c5db199SXin Lisetup_modules.setup(base_path=client_dir, 19*9c5db199SXin Li root_module_name="autotest_lib.client") 20