# Uncomment this and set to the location of the ndoCmd.py script on your machine
#NDOTOOL=<path-to>/ndoCmd.py

if [ -z "$NDOTOOL" ]
then
    NDODIR=$(dirname $0)
    NDODIR=$(cd ${NDODIR}; pwd)
    NDOTOOL=${NDODIR}/ndoCmd.py
fi
if [ ! -x "$NDOTOOL" ]
then
    NDOTOOL=`which ndoCmd.py`
    if [ $? -ne 0 ]
    then
        echo "Could not find ndoCmd.py tool"
        exit 1
    fi
fi
NDODIR=$(dirname ${NDOTOOL})
if [ -f ${NDODIR}/venv/bin/activate ]
then
    . ${NDODIR}/venv/bin/activate
fi
$NDOTOOL "$@"
