#!/bin/sh
# Start iMosflm interface

if test "x$CCP4" = x; then
  . `dirname $0`/ccp4.setup-sh
fi

if test "x$MOSFLM_WISH" = x -a "x$CCP4I_TCLTK" != x; then
    MOSFLM_WISH="$CCP4I_TCLTK/wish"
    export MOSFLM_WISH
fi

# imosflm is using python, not ccp4-python, this is a workaround
python_path=`ccp4-python -c "import sys; print sys.exec_prefix"` && \
PATH=$PATH:$python_path

exec $CCP4I_TOP/imosflm/src/imosflm $*
