1 import os, sys 2 dirname = os.path.dirname(sys.modules[__name__].__file__) 3 client_dir = os.path.abspath(os.path.join(dirname, "..", "..")) 4 sys.path.insert(0, client_dir) 5 import setup_modules 6 sys.path.pop(0) 7 setup_modules.setup(base_path=client_dir, 8 root_module_name="autotest_lib.client") 9