#!/bin/sh

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

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

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

