1af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo# Use of this source code is governed by a BSD-style license that can be 3af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo# found in the LICENSE file. 4af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo 5af88241d227f977178b0c42a473bbfc3d863e735Alex Deymoimport os, sys 6af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo 7af88241d227f977178b0c42a473bbfc3d863e735Alex Deymodirname = os.path.dirname(sys.modules[__name__].__file__) 8af88241d227f977178b0c42a473bbfc3d863e735Alex Deymoclient_dir = os.path.abspath(os.path.join(dirname, os.pardir, os.pardir)) 9af88241d227f977178b0c42a473bbfc3d863e735Alex Deymosys.path.insert(0, client_dir) 10af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo 11af88241d227f977178b0c42a473bbfc3d863e735Alex Deymoimport setup_modules 12af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo 13af88241d227f977178b0c42a473bbfc3d863e735Alex Deymosys.path.pop(0) 14af88241d227f977178b0c42a473bbfc3d863e735Alex Deymosetup_modules.setup(base_path=client_dir, 15af88241d227f977178b0c42a473bbfc3d863e735Alex Deymo root_module_name="autotest_lib.client") 16