#!/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 os, PythonCard.tools.resourceEditor.resourceEditor as r; print os.path.dirname(r.__file__)"`

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

