1*9c5db199SXin Li# Copyright 2020 The Chromium OS Authors. All rights reserved. 2*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be 3*9c5db199SXin Li# found in the LICENSE file. 4*9c5db199SXin Li 5*9c5db199SXin Li# Build relative paths for files with root of autotest_lib. 6*9c5db199SXin Li 7*9c5db199SXin Liimport os, sys 8*9c5db199SXin Lidirname = os.path.dirname(sys.modules[__name__].__file__) 9*9c5db199SXin Liautotest_dir = os.path.abspath(os.path.join(dirname, '../../../..')) 10*9c5db199SXin Liclient_dir = os.path.join(autotest_dir, 'client') 11*9c5db199SXin Lisys.path.insert(0, client_dir) 12*9c5db199SXin Liimport setup_modules 13*9c5db199SXin Lisys.path.pop(0) 14*9c5db199SXin Lisetup_modules.setup(base_path=autotest_dir, root_module_name='autotest_lib') 15