From 7a7a8430b52b4ce8f1451eba927c3f809b84cc4e Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:06:04 +0000 Subject: [project @ fpeters@0d.be-20071120201406-loyt7g5302ztk7er] get srcdir from env variable (set automatically by automake) Original author: Frederic Peters Date: 2007-11-20 21:14:06.537000+01:00 --- bindings/python/tests/binding_tests.py | 3 ++- bindings/python/tests/profiles_tests.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'bindings/python') 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): -- cgit