showard | 4a3a08d | 2008-04-02 23:26:31 +0000 | [diff] [blame] | 1 | import os, sys |
showard | 4a3a08d | 2008-04-02 23:26:31 +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") |
showard | 4a3a08d | 2008-04-02 23:26:31 +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") |