#!/bin/bash

this_script=$(readlink -f "$0")
cram_dir=$(readlink -f "$(dirname "$this_script")")

# Deactivate Python 3 conda environment and restore Python 2.7
source $PACKAGE_TOP/anaconda/envs/python3_env/bin/deactivate
if [ "$HOSTNAME" = "lcls-dev2" ]; then
    # Use 32-bit setup on lcls-dev2
    source $TOOLS/python/setupPython.bash
else
    # Use 64-bit setup everywhere else
    source $TOOLS/python/go_python2.7.13.bash
fi

"$cram_dir/multi_facility_process_helper.py" "$@"
