Commits

Hugo Lopes Tavares committed 472ff5e

exclude option uses relative path - fixed

Comments (0)

Files changed (1)

 #!/bin/bash
 
+# TODO
+# check if there too many E501, E225
 IGNORE="--ignore E501,W391,E225,E261"
 LOCATION=.
-EXCLUDE="--exclude docs,build,$VIRTUAL_ENV"
+EXCLUDE="--exclude docs,build,`basename $VIRTUAL_ENV`"
 PYLINTRC="`dirname $0`/pylintrc"
 PYVERSION="`python --version 2>&1 | sed 's/.*\(2\..\).*/\1/'`"
 PTHFILE="$VIRTUAL_ENV/lib/python$PYVERSION/site-packages/easy-install.pth"