#!/bin/sh

# A simple command-line wrapper for PythonCard's findfiless tool.
# Copyright (c) Kenneth J. Pronovici <pronovic@debian.org>; use as you wish.

dir=`python -c "import os, PythonCard.tools.findfiles.findfiles as f; print os.path.dirname(f.__file__)"`

if [ -d $dir ]; then
   exec /usr/bin/python $dir/findfiles.py "$@"
else
   echo "Unable to find PythonCard installation."
fi

