#!/bin/sh
retval=true
for f in /usr/share/creepy/plugins/*/*.py; do
    echo
    echo Testing if $f is loadable by python.
    echo
    if PYTHONPATH=/usr/share/creepy python -c "execfile('$f')" 2>&1 ; then
        echo "success: loading $f worked"
    else
        echo "error: loading $f failed"
        retval=false
    fi
done
$retval
