Skip to content

Instantly share code, notes, and snippets.



Created Sep 20, 2012
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'
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.