xixuan | 2a0970a | 2016-08-10 12:12:44 -0700 | [diff] [blame^] | 1 | # Copyright (c) 2016 The Chromium OS Authors. All rights reserved. |
2 | # Use of this source code is governed by a BSD-style license that can be | ||||
3 | # found in the LICENSE file. | ||||
4 | |||||
5 | import os | ||||
6 | import sys | ||||
7 | |||||
8 | # Make sure that chromite is available to import. | ||||
9 | _path = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, | ||||
10 | os.pardir) | ||||
11 | if _path not in sys.path: | ||||
12 | sys.path.insert(0, os.path.abspath(_path)) | ||||
13 | |||||
14 | del _path |