mbligh | ed4d6dd | 2008-02-27 16:49:43 +0000 | [diff] [blame] | 1 | import os, sys |
mbligh | ed4d6dd | 2008-02-27 16:49:43 +0000 | [diff] [blame] | 2 | dirname = os.path.dirname(sys.modules[__name__].__file__) |
mbligh | 1b87bc5 | 2008-04-03 22:29:48 +0000 | [diff] [blame] | 3 | autotest_dir = os.path.abspath(os.path.join(dirname, "..")) |
| 4 | client_dir = os.path.join(autotest_dir, "client") |
mbligh | ed4d6dd | 2008-02-27 16:49:43 +0000 | [diff] [blame] | 5 | sys.path.insert(0, client_dir) |
mbligh | 1b87bc5 | 2008-04-03 22:29:48 +0000 | [diff] [blame] | 6 | import setup_modules |
| 7 | sys.path.pop(0) |
| 8 | setup_modules.setup(base_path=autotest_dir, root_module_name="autotest_lib") |