prefer the venv pybabel but allow the system one to be used (if found)

This commit is contained in:
kytv
2013-08-31 23:58:20 +00:00
parent ba651ceafb
commit 5c7672eb1c
5 changed files with 27 additions and 7 deletions

View File

@@ -4,3 +4,12 @@ BABELCFG=etc/babel.cfg
POTDIR=pots
PROJDIR=i2p2www
TRANSDIR=$PROJDIR/translations
if [ -x env/bin/pybabel ]; then
PYBABEL=env/bin/pybabel
elif [ $(which pybabel) ]; then
PYBABEL=$(which pybabel)
else
echo "ERROR: pybabel was not found. Please run setup_venv.sh" >&2
exit 1
fi