commit | 398780430d7f222b07ee9cf3e4c1e2a90dda84e7 | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Mon Jul 09 14:45:35 2012 -0700 |
committer | Rich Lane <rich.lane@bigswitch.com> | Mon Jul 09 14:45:35 2012 -0700 |
tree | ee2a2b59968a99858f23c0b1f04b9fe242338765 | |
parent | 3978f24c0b64a8e4d51ef75beda47998c4583bb0 [diff] |
supporting running from source tree
diff --git a/tests/oft b/tests/oft index c834b8e..a092943 100755 --- a/tests/oft +++ b/tests/oft
@@ -124,6 +124,11 @@ import time import os +pydir = os.path.join(os.path.dirname(__file__), '..', 'src', 'python') +if os.path.exists(os.path.join(pydir, 'oftest')): + # Running from source tree + sys.path.insert(0, pydir) + import testutils try: