Created
September 20, 2012 08:28
-
-
Save ionelmc/3754670 to your computer and use it in GitHub Desktop.
Test the damn imports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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