#!/bin/sh
name=`basename $0`
if [ _"$name" == _"gmPlugin" ] ; then
   echo "This is a wrapper script which is not intended to be called by itself."
   exit
fi
GnuMedDir=/usr/lib/python2.3/site-packages/Gnumed
Plugin=`find ${GnuMedDir} -name ${name}.py  | head -n 1`
if [ _"${Plugin}" = _"" ] ; then
    echo "Plugin ${name} not found."
    exit -1
fi
/usr/bin/python2.3 ${Plugin} --log-file=~/.gnumed/ --debug $@
