Skip to content

Instantly share code, notes, and snippets.

@nitay
Created April 16, 2016 15:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nitay/f26da64f5697c448d114e9f56f3d0894 to your computer and use it in GitHub Desktop.
if [[ ${PANTS_DEV} == 1 ]]; then
DIR=$(cd "$(dirname "$0")/.." && pwd)
PANTS_SRC=${PANTS_SRC:-${DIR}/pants}
echo "Running dev version of pants from ${PANTS_SRC}"
PYTHONPATH=${PANTS_SRC}/contrib/python/src/python exec ${PANTS_SRC}/pants $@
else
pants_dir=$(bootstrap_pants) && \
exec "${pants_dir}/bin/pants" "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment