From 90bc1c1790615f7231a408a9202babde35a6bc29 Mon Sep 17 00:00:00 2001 From: Jose Borreguero Date: Mon, 9 Jun 2025 12:21:35 -0400 Subject: [PATCH] update nr_launcher to check for conda environment existence Signed-off-by: Jose Borreguero --- rpm/nsd-app-wrap.spec | 5 ++++- src/nr_launcher | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/rpm/nsd-app-wrap.spec b/rpm/nsd-app-wrap.spec index c47ba48..4cd3b5f 100644 --- a/rpm/nsd-app-wrap.spec +++ b/rpm/nsd-app-wrap.spec @@ -1,5 +1,5 @@ Name: nsd-app-wrap -Version: 1.93 +Version: 1.94 Release: 1%{?dist} Summary: Wrapper scripts to launch python applications installed via anaconda Vendor: Peter F. Peterson @@ -106,6 +106,9 @@ install -m 644 desktop/ibeatles.desktop %{buildroot}%{_datadir}/a %changelog +* Mon Jun 09 2025 Jose Borreguero +- Update the nr_launcher scripts + * Thu May 29 2025 John Hetrick - Removed crystalplan diff --git a/src/nr_launcher b/src/nr_launcher index 83c812a..a21a2e4 100644 --- a/src/nr_launcher +++ b/src/nr_launcher @@ -3,6 +3,11 @@ # select the environment to use CONDA_ENVIRON=refl1d +# check if the conda environment exists +if ! conda env list | \grep -q "^${CONDA_ENVIRON}[[:space:]]"; then + CONDA_ENVIRON=refl1d-qa +fi + if [ -v CONDA_ENVIRON ]; then # import library to do the real work # shellcheck disable=SC1091 -- GitLab