From a606f3cd9ae511a7981ecea9b6a36c796e9cef02 Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Sat, 28 Jan 2012 17:12:52 +0100 Subject: [PATCH] Correctly initialize directory for run_tests.py --- tests/run_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/run_tests.py b/tests/run_tests.py index a4be7190d..bbe469a68 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -63,8 +63,9 @@ def main(): # 3 * '-v' gets us debugging information from nose argv.append('-v') argv.append('-v') - - argv.extend(['-w','./tests/python_tests']) + + dirname = os.path.dirname(sys.argv[0]) + argv.extend(['-w', dirname+'/python_tests']) if not nose.run(argv=argv, plugins=[TodoPlugin(), Doctest()]): sys.exit(1)