From 0085835b3f949df8ae55231500dc2a8308a3bace Mon Sep 17 00:00:00 2001 From: "Petras, Randy" Date: Thu, 18 Dec 2025 20:18:55 +0000 Subject: [PATCH] Update 2 files - /src/nexpy - /rpm/nsd-app-wrap.spec --- rpm/nsd-app-wrap.spec | 2 +- src/nexpy | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/nexpy diff --git a/rpm/nsd-app-wrap.spec b/rpm/nsd-app-wrap.spec index 1f24225..970d136 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 0000000..8d8dce9 --- /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[@]}" -- GitLab