mbligh | c335c7d | 2007-11-12 21:27:08 +0000 | [diff] [blame] | 1 | import os, sys |
mbligh | 0c3548d | 2008-02-01 18:08:53 +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 | 8375088 | 2008-02-28 16:38:53 +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") |