167a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtz# Copyright (c) 2014 The Chromium OS Authors. All rights reserved. 267a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtz# Use of this source code is governed by a BSD-style license that can be 367a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtz# found in the LICENSE file. 467a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtz 567a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtzimport os, sys 667a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtzdirname = os.path.dirname(sys.modules[__name__].__file__) 767a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtzclient_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 867a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtzsys.path.insert(0, client_dir) 967a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtzimport setup_modules 1067a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtzsys.path.pop(0) 1167a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtzsetup_modules.setup(base_path=client_dir, 1267a21bd0494108680fb2c6c1410b8a1aae1f148aDaniel Kurtz root_module_name="autotest_lib.client") 13