#!/usr/pkg/bin/python2.7
#
#    Jools -- a graphical puzzle game in the Tetris tradition
#    
#    Copyright (C) 2002-2003 Paul Pelzl
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

# Jools executable script

# First, try executing an installed version of jools.  If that fails,
# try executing from the current directory (presumably the source
# distribution).

try:
   import jools

except ImportError:
   print "Jools does not appear to be installed."
   print "Trying to execute Jools in the current directory..."
   try:
      import __init__
   except ImportError:
      print "Error: Unable to locate the Jools Python modules."


# arch-tag: executable script

