Commit a1a782e6 authored by Petras, Randy's avatar Petras, Randy
Browse files

Merge branch '24u-nexpy-addition' into 'main'

Add nexpy launcher

See merge request !117
parents b2903b24 0085835b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
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

src/nexpy

0 → 100644
+24 −0
Original line number Diff line number Diff line
#!/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[@]}"