xref: /aosp_15_r20/external/autotest/server/cros/faft/utils/common.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Lint as: python2, python3
2# Copyright (c) 2014 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
6import os, sys
7dirname = os.path.dirname(sys.modules[__name__].__file__)
8autotest_dir = os.path.abspath(
9        os.path.join(dirname, os.pardir, os.pardir, os.pardir, os.pardir))
10client_dir = os.path.join(autotest_dir, 'client')
11sys.path.insert(0, client_dir)
12import setup_modules
13sys.path.pop(0)
14setup_modules.setup(base_path=autotest_dir, root_module_name='autotest_lib')
15