1c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williams# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williams# Use of this source code is governed by a BSD-style license that can be 3c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williams# found in the LICENSE file. 4c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williams 5c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williamsimport os, sys 6c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williamsimport setup_modules 7c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williams 8c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williamsdirname = os.path.dirname(sys.modules[__name__].__file__) 99e30bb204a993933f5a8875498abb84b7e227e0aAlex Millerclient_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 10c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williamssys.path.insert(0, client_dir) 11c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williamssys.path.pop(0) 12c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williamssetup_modules.setup(base_path=client_dir, 13c2a8f8b5d56157355034375dae1b29df78e1d357Nathan Williams root_module_name="autotest_lib.client") 14