Correctly initialize directory for run_tests.py

This commit is contained in:
Hermann Kraus 2012-01-28 17:12:52 +01:00
parent ff07b4bce0
commit a606f3cd9a

View file

@ -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)