From c4e3cd6514cb672fe5a66bead008d69341568862 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 10 Aug 2004 01:29:56 +0000 Subject: [PATCH] Tried to add a default $1, so that it runs like all the rest. --- test_problems/python/runtest | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test_problems/python/runtest b/test_problems/python/runtest index 42965a5fa..77dec5f5a 100755 --- a/test_problems/python/runtest +++ b/test_problems/python/runtest @@ -11,7 +11,17 @@ temp_success="1" CANTERA_DATA=${CANTERA_DATA:=../../data/inputs}; export CANTERA_DATA CANTERA_BIN=${CANTERA_BIN:=../../bin} -PYTHON_CMD=$1 + +# +# Try to create a default python executable location if no +# argument to runtest is supplied. +# +if test -z $PYTHONHOME ; then + PYTHON_CMDA=python +else + PYTHON_CMDA=$PYTHONHOME/bin/python +fi +PYTHON_CMD=${PYTHON_CMDA:=$1} $PYTHON_CMD ../../Cantera/python/examples/flame1.py > flame1.out retnStat=$?