#!/bin/sh

[ -n "$CCP4" ] || . `dirname $0`/ccp4.setup-sh

if [ -z "$BALBES_ROOT" ]; then
  echo "Environment variable BALBES_ROOT is not set." >&2
  echo "BALBES is probably not installed. Due to its large size," >&2
  echo "BALBES is an optional component of the CCP4 suite." >&2
  exit 1
fi

exec $CCP4/bin/ccp4-python $BALBES_ROOT/bin_py/balbes "$@"
