Commit d97ed103 authored by Jose Borreguero's avatar Jose Borreguero
Browse files

cd to the location of the nr_launcher script before launching it

parent e44edaf8
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ if [ -v CONDA_ENVIRON ]; then
    source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

    # put together arguments - conda_env, application, location, arguments passed to this script
    args=("${CONDA_ENVIRON}" "python" "/SNS/REF_L/shared/launcher/launcher.py" "$@")
    args=("${CONDA_ENVIRON}" "cd /SNS/REF_L/shared/launcher/; python launcher.py; cd -" "$@")

    # start the application
    activate_and_launch "${args[@]}"
+4 −1
Original line number Diff line number Diff line
%global srcname nsd-app-wrap

Name:           nsd-app-wrap
Version:        1.47
Version:        1.48
Release:        1%{?dist}
Summary:        Wrapper scripts to launch python applications installed via anaconda
Vendor:         Peter F. Peterson
@@ -70,6 +70,9 @@ install -m 644 jupyter.local.desktop %{buildroot}%{_datadir}/applications/
%license LICENSE

%changelog
* Fri Aug 18 2023 Jose Borreguero
- cd to the location of the nr_launcher script before launching it

* Wed Aug 9 2023 Jose Borreguero
- new command nr_launcher