#!/bin/bash
# fslpython - FSL's Python interpreter, Fedora edition.
#
# Upstream FSL ships $FSLDIR/bin/fslpython as a private conda environment.
# On Fedora the same role is played by the system python3 plus the packaged
# fslpy stack (python3-fslpy, nibabel, numpy, ...), which this package pulls
# in as Requires. FSL's own wrapper scripts (eddy, xtract, bianca, ...) use
# "#!/usr/bin/fslpython" and fsl.utils.run.runfsl() needs $FSLDIR, so make
# sure it is set even outside a login shell that sourced profile.d/fsl.sh.
: "${FSLDIR:=/usr/lib/fsl}"
export FSLDIR
export FSLOUTPUTTYPE="${FSLOUTPUTTYPE:-NIFTI_GZ}"
exec /usr/bin/python3 "$@"
