Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 419 Bytes
#!/bin/bash
DIRECTORY=`dirname $0`
export PYTHONPATH=$DIRECTORY:$DIRECTORY/gum:$PYTHONPATH
if [ -d "$DIRECTORY/venv" ]; then
source venv/bin/activate
fi;
if test -z $@; then
files=`find gum -name '*.py'`;
else
files=$@
fi
for f in $files; do
echo ""
echo -e '\E[37;44m'"\033[1mpython $f\033[0m"
python2 $f
if [[ ! $? == 0 ]]; then
echo -e '\E[31;40m'"\033[1mFailed \033[0m"
fi
done