#!/bin/sh

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

dir=`python -c 'import distutils.sysconfig as s; print(s.get_python_lib())'`/PythonCard/tools/findfiles

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