#!/bin/sh

# A simple command-line wrapper for PythonCard's resourceEditor 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/resourceEditor

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