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