#!/bin/sh
#
# Wrapper for the real fetchmailconf. Checks whether Python is installed,
# and runs the real fetchmailconf or alerts the user, as appropriate.
#

if [ -x ${MODPY_BIN} -a -d ${MODPY_LIBDIR}/lib-tk ]; then
	exec ${PREFIX}/libexec/fetchmailconf.bin
else
	cat <<EOF
Please install the python and python-tkinter packages, then try running
fetchmailconf again.
EOF
	exit 1
fi
