3 ROOT=$(git rev-parse --show-toplevel)
5 find $ROOT -name '*.py' | xargs etags -o ${ROOT}/TAGS
6 if [ -n "$VIRTUAL_ENV" ]; then
7 find ${VIRTUAL_ENV}/lib -name '*.py' |xargs etags -a -o ${ROOT}/TAGS
9 echo "No Virtual env enabled, will not add it to TAGS"