#!/bin/tcsh # This is a simple wrapper script that is to set up the # python virtual environment for running Hydra. It is not # currently used in any cronjobs, but is here so that it # lives alongside other similar scripts. # # By default, this should use the environment in the # variable HOSS_VENV which is set globally in /gluex/etc/hdonline.cshrc source ${HOME}/.tcshrc # Remove any existing pyepics so it is taken from # the virtual environment below. setenv PYTHONPATH `printenv PYTHONPATH | tr ':' '\n' | grep -v epics | tr '\n' ':'` # Setup python virtual environment source $HOSS_VENV/bin/activate.csh $*