1# Copyright (c) 2014 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# setup the environment so that autotest_lib can be imported when this file is 6# run as an executable 7 8import os, sys 9 10dirname = os.path.dirname(sys.modules[__name__].__file__) 11client_dir = os.path.abspath(os.path.join(dirname, "..", "..", "..")) 12sys.path.insert(0, client_dir) 13 14import setup_modules 15 16sys.path.pop(0) 17setup_modules.setup(base_path=client_dir, 18 root_module_name="autotest_lib.client") 19