Created
April 16, 2016 15:55
-
-
Save nitay/f26da64f5697c448d114e9f56f3d0894 to your computer and use it in GitHub Desktop.
This file contains 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
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