From 23aa3536acf03c0097e55549511889ad4ab36d19 Mon Sep 17 00:00:00 2001
From: Klaus Rabbertz <klaus.rabbertz@cern.ch>
Date: Tue, 25 Jun 2024 15:28:46 +0200
Subject: [PATCH] Update order of source'ing lcg view and grid ui

---
 setup_law_c7_v2.sh | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/setup_law_c7_v2.sh b/setup_law_c7_v2.sh
index dd8d930..38e7a05 100644
--- a/setup_law_c7_v2.sh
+++ b/setup_law_c7_v2.sh
@@ -17,18 +17,6 @@ action() {
     # lcg software stack with python3 and gcc11 (use the same one as for cvmfs install of NNLOJET & APPLfast)
     source /cvmfs/sft.cern.ch/lcg/views/LCG_102/x86_64-centos7-gcc11-opt/setup.sh
 
-    # grid storage interface with gfal2, if required
-    # SLC6
-    # source /cvmfs/grid.cern.ch/emi3ui-latest/etc/profile.d/setup-ui-example.sh
-    # C7
-    # source /cvmfs/grid.cern.ch/umd-c7ui-latest/etc/profile.d/setup-c7-ui-example.sh
-    # C7 with python3
-    # source /cvmfs/grid.cern.ch/centos7-ui-200122/etc/profile.d/setup-c7-ui-python3-example.sh
-    source /cvmfs/grid.cern.ch/centos7-ui-160522/etc/profile.d/setup-c7-ui-python3-example.sh
-    #
-    # Proxy location on afs required by lxplus if using grid storage
-    # export X509_USER_PROXY=/afs/cern.ch/user/k/krabbert/tmp/x509up_u7747
-
     # fastNLO tools (perl and python scripts)
     # Required to merge fastwarm results or for plotting (needs python3, matplotlib3, numpy, scipy)
     # Add local paths to git checkout, e.g.
@@ -66,6 +54,18 @@ action() {
     # Use new modified nnlojet merging from fastNLO git
     export PATH="$gitpath/tools/nnlojet:$PATH"
 
+    # grid storage interface with gfal2, if required
+    # SLC6
+    # source /cvmfs/grid.cern.ch/emi3ui-latest/etc/profile.d/setup-ui-example.sh
+    # C7
+    # source /cvmfs/grid.cern.ch/umd-c7ui-latest/etc/profile.d/setup-c7-ui-example.sh
+    # C7 with python3
+    # source /cvmfs/grid.cern.ch/centos7-ui-200122/etc/profile.d/setup-c7-ui-python3-example.sh
+    source /cvmfs/grid.cern.ch/centos7-ui-160522/etc/profile.d/setup-c7-ui-python3-example.sh
+    #
+    # Proxy location on afs required by lxplus if using grid storage
+    # export X509_USER_PROXY=/afs/cern.ch/user/k/krabbert/tmp/x509up_u7747
+
     source "$( law completion )"
 }
 action
-- 
GitLab