diff --git a/rpm/nsd-app-wrap.spec b/rpm/nsd-app-wrap.spec index 1f24225ff7da61788db58f4596d3e040de7c4b86..970d13678909d6b86c37659780907ae90d1ab7b4 100644 --- a/rpm/nsd-app-wrap.spec +++ b/rpm/nsd-app-wrap.spec @@ -1,5 +1,5 @@ Name: nsd-app-wrap -Version: 2.14 +Version: 2.15 Release: 1%{?dist} Summary: Wrapper scripts to launch python applications installed via anaconda Vendor: Peter F. Peterson diff --git a/src/nexpy b/src/nexpy new file mode 100644 index 0000000000000000000000000000000000000000..8d8dce959a92305bac25f1578a17401c750f7151 --- /dev/null +++ b/src/nexpy @@ -0,0 +1,24 @@ +#!/bin/bash + +# select the environment to use +# current default is system version +PIXI_ENVIRON=nexpy +if [ -n "$1" ]; then + if [ "$1" == "--dev" ]; then + PIXI_ENVIRON=nexpy_dev + shift # drop this argument + elif [ "$1" == "--qa" ]; then + PIXI_ENVIRON=nexpy_qa + shift # drop this argument + fi +fi + +# import library to do the real work +# shellcheck disable=SC1091 +. "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh" || + . /bin/nsd-app-wrap.sh + +# put together arguments - conda_env, application, argv +args=("${PIXI_ENVIRON}" "nexpy" "$@") +# launch the tool +pixi_launch "${args[@]}"