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" "$@" nsd-app-wrap.spec +1 −0 Original line number Diff line number Diff line Loading @@ -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/ 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" "$@"
nsd-app-wrap.spec +1 −0 Original line number Diff line number Diff line Loading @@ -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/ Loading