Tried to add a default $1, so that it runs like all the rest.

This commit is contained in:
Harry Moffat
2004-08-10 01:29:56 +00:00
parent 3e54072493
commit c4e3cd6514

View File

@@ -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=$?