#!/bin/bash

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

# Set up Python 2.7 environment
if [ "$HOSTNAME" = "lcls-dev2" ]; then
    # Use 32-bit setup on lcls-dev2
    source "$TOOLS/python/setupPython.bash"
elif [ -f "$TOOLS/python/go_python2.7.13.bash" ]; then
    # Use 64-bit setup everywhere else if it exists
    source "$TOOLS/python/go_python2.7.13.bash"
fi

"$cram_dir/cram.py" "$@"
