virt.virt_test_utils: run_autotest - 'tar' needs relative paths to strip the leading '/'
[autotest-zwu.git] / client / virt / common.py
blob7fc8f6a57805330af69dae3e42e33e3df2d1d6a9
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")