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

PREFIX=/usr/local

if [ -x $PREFIX/bin/python ]; then
	exec $PREFIX/libexec/web2png.bin
else
	cat <<EOF
The web2png program requires Python, which does not appear to be
installed on this system. Python can be found in the OpenBSD Ports
Collection under lang/python.
EOF
	exit 1
fi
