#!/bin/sh

path_to_pyrogenesis=$(which pyrogenesis)
if [ -x "$path_to_pyrogenesis" ] ; then
	"$path_to_pyrogenesis" "$@"
elif [ -x /usr/games/pyrogenesis ] ; then
	# Fallback in case /usr/games is not in $PATH; see #679033
	/usr/games/pyrogenesis "$@"
else
	echo "Error: pyrogenesis cannot be found in $PATH"
	exit 1
fi
