Skip to content

Instantly share code, notes, and snippets.

@ionelmc
Created September 20, 2012 08:28
Show Gist options
  • Select an option

  • Save ionelmc/3754670 to your computer and use it in GitHub Desktop.

Select an option

Save ionelmc/3754670 to your computer and use it in GitHub Desktop.
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