1a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labour# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 2a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labour# Use of this source code is governed by a BSD-style license that can be 3a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labour# found in the LICENSE file. 4a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labour 5a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labourimport os, sys 6a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labourdirname = os.path.dirname(sys.modules[__name__].__file__) 79e30bb204a993933f5a8875498abb84b7e227e0aAlex Millerclient_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 8a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Laboursys.path.insert(0, client_dir) 9a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labourimport setup_modules 10a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Laboursys.path.pop(0) 11a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Laboursetup_modules.setup(base_path=client_dir, 12a44cb81e6eaeb0f3fb195d984198584ce3a78ff2Antoine Labour root_module_name="autotest_lib.client") 13