diff options
Diffstat (limited to 'bindings/python')
| -rwxr-xr-x | bindings/python/tests/binding_tests.py | 3 | ||||
| -rwxr-xr-x | bindings/python/tests/profiles_tests.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bindings/python/tests/binding_tests.py b/bindings/python/tests/binding_tests.py index b8307586..d86d519b 100755 --- a/bindings/python/tests/binding_tests.py +++ b/bindings/python/tests/binding_tests.py @@ -39,7 +39,8 @@ import lasso try: dataDir except NameError: - dataDir = '../../../tests/data' + srcdir = os.environ.get('srcdir', '.') + dataDir = '%s/../../../tests/data' % srcdir class BindingTestCase(unittest.TestCase): diff --git a/bindings/python/tests/profiles_tests.py b/bindings/python/tests/profiles_tests.py index 40b917d2..84647b21 100755 --- a/bindings/python/tests/profiles_tests.py +++ b/bindings/python/tests/profiles_tests.py @@ -40,7 +40,8 @@ import lasso try: dataDir except NameError: - dataDir = '../../../tests/data' + srcdir = os.environ.get('srcdir', '.') + dataDir = '%s/../../../tests/data' % srcdir class ServerTestCase(unittest.TestCase): |
