Commit 2eb9b177 authored by Jose Borreguero's avatar Jose Borreguero
Browse files

add nr_launcher script

parent 76045ff0
Loading
Loading
Loading
Loading
Loading

nr_launcher

0 → 100644
+15 −0
Original line number Diff line number Diff line
#!/bin/bash

# select the environment to use
CONDA_ENVIRON=refl1d

if [ -v CONDA_ENVIRON ]; then
    # import library to do the real work
    source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

    # put together arguments - conda_env, application, location, arguments passed to this script
    args=("${CONDA_ENVIRON}" "python" "/SNS/REF_L/shared/launcher/launcher.py" "$@")

    # start the application
    activate_and_launch "${args[@]}"
fi