#!/bin/sh

if [ "$FSLDIR" = "" ] ; then
  echo "FSLDIR has not been set!"
  exit 1
fi

if [ -e ${FSLDIR}/bin/ipython ]; then
  exec ${FSLDIR}/bin/ipython "$@"
else
  echo "IPython is not present in this FSL installation - aborting"
  exit 1
fi
