From 61f730449b1b792801d59afb09f9bc8471cfe262 Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Thu, 29 Aug 2013 09:40:36 -0400 Subject: [PATCH] append current working directory to path to find nose_mpi.py --- tests/run_tests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/run_tests.py b/tests/run_tests.py index 4374d70cef..ce0bb57729 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -7,6 +7,10 @@ import nose import glob from subprocess import call +# get current working directory +pwd = os.getcwd() +sys.path.append(pwd) + # setup color printing codes OK = '\033[92m' FAIL = '\033[91m' @@ -25,9 +29,6 @@ run_gfortran_petsc = True run_gfortran_phdf5_petsc = True run_gfortran_phdf5_petsc_opt = True -# get current working directory -pwd = os.getcwd() - # check for extra command line options opts = ['all'] # default is run everything if len(sys.argv) > 1: