Commit 3ba83498 authored by Earnest, Donnie's avatar Earnest, Donnie
Browse files

Merge branch 'master' of code.ornl.gov:sns-hfir-scse/infrastructure/nsd-app-wrap

parents 387f69f9 2f258e43
Loading
Loading
Loading
Loading
Loading

drtsans

0 → 100755
+29 −0
Original line number Diff line number Diff line
#!/bin/bash

# select the environment to use
CONDA_ENVIRON=sans
if [ -n "$1" ]; then
  if [ "$1" == "--dev" ]; then
    CONDA_ENVIRON=sans-dev
    shift  # drop this argument
  elif [ "$1" == "--qa" ]; then
    CONDA_ENVIRON=sans-qa
    shift  # drop this argument
  fi
fi

# look for `--classic` argument
STARTUP=ipython
if [ -n "$1" ] && [ "$1" == "--classic" ]; then
    STARTUP=python
    shift  # drop this argument
fi

# import library to do the real work
source "$(dirname $(realpath "$0"))/nsd-app-wrap.sh"

# activate the environment - will be deactivated on exit
activate_conda_environment "${CONDA_ENVIRON}"

# start the application
"$STARTUP" "$@"
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ mv nsd-app-wrap.sh %{buildroot}%{_bindir}/
mv nsd-conda-wrap.sh %{buildroot}%{_bindir}/
mv pyrs %{buildroot}%{_bindir}/
mv sasview %{buildroot}%{_bindir}/
mv drtsans %{buildroot}%{_bindir}/
# put icons in the right place
mkdir -p %{buildroot}/%{_datadir}/pixmaps/
mv pyrs.png %{buildroot}/%{_datadir}/pixmaps/