/usr/bin/pyferret2 is in python-ferret 7.3-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #! /bin/sh
## This Bourne-shell script is used to initialize and run Ferret using
## the pyferret Python module. The intent of this script is to provide
## a traditional Ferret interface through the pyferret module.
## set python_exe to the (optionally full-path) python executable to use
python_exe=python2.7
##
## ==== The following should not need any modifications ====
##
## The pyferret assignment to PYTHONPATH and LD_LIBRARY_PATH
## is now done in the ferret_paths script.
## Finally, execute an in-line Python script to run Ferret using the pyferret
## module. The init method explicity processes the $PYTHONSTARTUP file, if it
## exists and if '-secure' was not given as a command-line argument.
if echo "$@" | grep -q -- "-linebuffer"; then
GFORTRAN_UNBUFFERED_PRECONNECTED=1
export GFORTRAN_UNBUFFERED_PRECONNECTED
python_flags="-u -i"
else
python_flags="-i"
fi
${python_exe} ${python_flags} -c "import sys; import pyferret; (errval, errmsg) = pyferret.init(sys.argv[1:], True)" "$@"
|