Skip to content

Instantly share code, notes, and snippets.

@ionelmc

ionelmc/gist:3754670

Created Sep 20, 2012
Embed
What would you like to do?
Test the damn imports
find src -name \*.py | sed 's/\//./g;s/\.py$//g;s/\.__init__$//;s/^src\.//' | while read -r line; do
echo Importing $line '\033[1;31m'
PYTHONPATH=src DJANGO_SETTINGS_MODULE=xxx.settings python -c "import $line"
echo -n '\033[0m'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.