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