xref: /aosp_15_r20/external/autotest/utils/frozen_chromite/__init__.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# -*- coding: utf-8 -*-
2# Copyright (c) 2012 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
6from __future__ import print_function
7
8import os
9import sys
10
11# Add the third_party/ dir to our search path so that we can find the
12# modules in there automatically.  This isn't normal, so don't replicate
13# this pattern elsewhere.
14_chromite_dir = os.path.normpath(os.path.dirname(os.path.realpath(__file__)))
15_third_party_dir = os.path.join(_chromite_dir, 'third_party')
16sys.path.insert(0, _third_party_dir)
17sys.path.insert(
18    # Allow Python 2 or 3 specific modules under a separate subpath.
19    1, os.path.join(_third_party_dir, 'python%s' % sys.version_info.major))
20