/usr/lib/neuron/bin/set_nrnpyenv.sh is in neuron-dev 7.5-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 27 28 29 30 31 32 33 | #!/bin/bash
#if nrniv does not work then see if we can fix the problem
if nrniv -c 'quit()' >& /dev/null ; then
true
else
orig_pythonhome="$PYTHONHOME"
orig_pythonpath="$PYTHONPATH"
orig_ldlibpath="$LD_LIBRARY_PATH"
orig_path="$PATH"
eval "`nrnpyenv.sh`"
if nrniv -c 'quit()' >& /dev/null ; then
true
else
echo Attempt to fix nrniv failure using: 'eval "`mk_nrnpyenv.sh`"' failed.
if test "$orig_pythonhome" = "" ; then
unset PYTHONHOME
else
export PYTHONHOME="$orig_pythonhome"
fi
if test "$orig_pythonpath" = "" ; then
unset PYTHONPATH
else
export PYTHONPATH="$orig_pythonpath"
fi
if test "$orig_ldlibpath" = "" ; then
unset LD_LIBRARY_PATH
else
export LD_LIBRARY_PATH="$orig_ldlibpath"
fi
export PATH="$orig_path"
fi
fi
|