From d3aa773f9f42045a0922d6c194e01d029ee53a40 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 6 Sep 2012 09:17:08 -0400 Subject: split up mammoth Plugin.py --- .../Testsrc/Testlib/TestServer/TestPlugin/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testsuite/Testsrc/Testlib/TestServer/TestPlugin/__init__.py (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugin/__init__.py') diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/__init__.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/__init__.py new file mode 100644 index 000000000..d86cf1079 --- /dev/null +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/__init__.py @@ -0,0 +1,17 @@ +import os +import sys + +# add all parent testsuite directories to sys.path to allow (most) +# relative imports in python 2.4 +path = os.path.dirname(__file__) +while path != "/": + if os.path.basename(path).lower().startswith("test"): + sys.path.append(path) + if os.path.basename(path) == "testsuite": + break + path = os.path.dirname(path) + +from Testbase import * +from Testinterfaces import * +from Testhelpers import * +from Testexceptions import * -- cgit v1.2.3-1-g7c22