10bd5ce32fb759c3236f3d860b408679f2494b5edSean Parent# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 20bd5ce32fb759c3236f3d860b408679f2494b5edSean Parent# Use of this source code is governed by a BSD-style license that can be 30bd5ce32fb759c3236f3d860b408679f2494b5edSean Parent# found in the LICENSE file. 40bd5ce32fb759c3236f3d860b408679f2494b5edSean Parent 50bd5ce32fb759c3236f3d860b408679f2494b5edSean Parentimport os, sys 60bd5ce32fb759c3236f3d860b408679f2494b5edSean Parentdirname = os.path.dirname(sys.modules[__name__].__file__) 79e30bb204a993933f5a8875498abb84b7e227e0aAlex Millerclient_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 80bd5ce32fb759c3236f3d860b408679f2494b5edSean Parentsys.path.insert(0, client_dir) 90bd5ce32fb759c3236f3d860b408679f2494b5edSean Parentimport setup_modules 100bd5ce32fb759c3236f3d860b408679f2494b5edSean Parentsys.path.pop(0) 110bd5ce32fb759c3236f3d860b408679f2494b5edSean Parentsetup_modules.setup(base_path=client_dir, 120bd5ce32fb759c3236f3d860b408679f2494b5edSean Parent root_module_name="autotest_lib.client") 13